/* ===== base (rodapé fixo, chat slide-in) ===== */
/* ===================================================== */
        /* --- ESTILOS GERAIS E FOOTER FIXO --- */
        /* ===================================================== */

        :root {
            --footer-height: 70px;
            --cor-texto-principal: #222222;
            --cor-texto-secundario: #555555;
            --cor-vermelha-principal: #FF3B30;
            --header-max-width: 768px;
        }

        /* O FOOTER FIXO */
        .fixed-footer-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: var(--footer-height);

            /* Centraliza em telas maiores */
            max-width: var(--header-max-width);
            transform: translateX(-50%);
            left: 50%;

            background-color: #fff;
            border-top: 1px solid #eee;
            display: flex;
            align-items: center;
            padding: 5px 10px;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
            z-index: 1000;
        }

        /* Links dos Ícones (Loja e Chat) */
        .fixed-footer-bar .icon-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex-basis: 45px;
            font-size: 11px;
            color: var(--cor-texto-secundario);
            gap: 4px;
            text-decoration: none;
            text-align: center;
            line-height: 1.2;
            padding: 0 2px;
        }
        .fixed-footer-bar .icon-link svg {
            width: 20px;
            height: 20px;
            color: var(--cor-texto-principal);
        }

        /* Grupo de Botões de Ação */
        .fixed-footer-bar .button-group {
            flex: 1;
            display: flex;
            gap: 16px;
        }

        /* Estilo base dos botões */
        .fixed-footer-bar .button-group button {
            flex: 1;
            border: none;
            border-radius: 5px;
            font-size: 17px;
            font-weight: 550;
            cursor: pointer;
            height: 48px;
            transition: all 0.3s ease;
            margin-right: 14px;
        }

        /* Botão "Comprar com cupom" (Fundo Vermelho) */
        .fixed-footer-bar .btn-buy-coupon {
            background-color: #ff2b54;
            color: #fff;
        }
        /* Botão "Adicionar ao carrinho" (Texto Preto) */
        .fixed-footer-bar .btn-add-cart {
            color: #000; /* Define a cor do texto como preta */
        }

        /* Otimização: Ajusta o body para garantir espaço para o footer */
        body {
            padding-bottom: calc(var(--footer-height) + 10px);
            margin: 0;
            background-color: #F4F4F4;
        }

        /* NOVO: Classe para travar o scroll do body quando o chat está aberto */
        body.scroll-lock {
            overflow: hidden !important;
            height: 100vh;
        }


        /* ===================================================== */
        /* --- CHAT SLIDE-IN CSS --- */
        /* ===================================================== */
        #chat-wrapper {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            z-index: 2000;

            /* Configuração inicial: FORA da tela, à direita */
            transform: translateX(100%);
            transition: transform 0.3s ease-out; /* Efeito de deslize suave */
        }

        #chat-wrapper.open {
            /* Estado ativo: Desliza para dentro */
            transform: translateX(0);
        }

/* ===== header ===== */
/* ----------------------------------
     * 1. VARIÁVEIS E ESTILOS GERAIS
     * ---------------------------------- */
    :root {
        /* A altura total do header é a soma da barra principal (50px) + barra de abas (40px) */
        --header-main-height: 50px;
        --tabs-height: 40px;
        --header-total-height: 90px; /* 50px + 40px */

        --header-bg: #FFFFFF;
        --header-icon-color: #000000;
        --tab-active-color: #000000; /* Cor do texto e sublinhado da aba ativa */
        --tab-inactive-color: #888888; /* Cor do texto das abas inativas */
        --header-max-width: 768px;
    }

    /* Padding Global: Garante que o conteúdo comece abaixo do header fixo */
    body {
        margin: 0;
        /* O padding-top AGORA usa a altura total (90px) */
        padding-top: var(--header-total-height);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }
    {
    scroll-behavior: smooth;
    }

    /* ----------------------------------
     * 2. ESTILO DO HEADER FIXO (Contêiner Principal)
     * ---------------------------------- */
    .top-header {
        /* A altura agora é a total */
        height: var(--header-total-height);
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 999;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        background-color: var(--header-bg);
    }

    /* 2a. BARRA PRINCIPAL (Ícones) */
    .header-main-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        /* Altura fixa da barra de ícones */
        height: var(--header-main-height);
        margin: 0 auto;
        max-width: var(--header-max-width);
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* Logo da loja, centralizado na barra principal */
    .header-main-bar { position: relative; }
    .header-main-bar .header-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        height: 34px;          /* <- altura do logo no cabeçalho */
        max-width: 140px;
        object-fit: contain;
        pointer-events: none;
    }

    /* 2b. BARRA DE NAVEGAÇÃO DE ABAS (Tabs) */
    .header-tabs-bar {
        display: flex;
        width: 100%;
        height: var(--tabs-height); /* 40px de altura */
        overflow-x: auto; /* Permite scroll lateral se houver muitas abas */
        -webkit-overflow-scrolling: touch;
        white-space: nowrap; /* Mantém as abas na mesma linha */
    }

    .tabs-content-wrapper {
        display: flex;
        align-items: center;
        margin: 0 auto;
        max-width: var(--header-max-width);
        padding: 0 15px;
        box-sizing: border-box;
        height: 100%;
        min-width: 100%; /* Garante que o wrapper ocupa a largura total para o scroll */
    }

    /* Estilo das Abas */
    .tab-item {
        display: block;
        height: 100%;
        padding: 0 10px;
        margin-right: 15px; /* Espaçamento entre as abas */
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        color: var(--tab-inactive-color);
        transition: color 0.2s ease;

        /* Centralizar texto verticalmente */
        display: flex;
        align-items: center;
        position: relative;
    }

    /* Estilo da Aba Ativa (Visível na imagem) */
    .tab-item.active {
        color: var(--tab-active-color);
        font-weight: 600;
    }
    .tab-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--tab-active-color);
    }

    /* ----------------------------------
     * 3. ESTILO DOS ÍCONES (Mantido)
     * ---------------------------------- */
    .top-header .right-icons {
        display: flex;
        align-items: center;
        gap: 22px;
    }

    .top-header .icon-button {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: var(--header-icon-color);
        padding: 5px;
    }

    .top-header .icon-button svg {
        height: 20px;
        width: 20px;
        flex-shrink: 0;
    }

    /* ----------------------------------
     * 4. MEDIA QUERIES (Responsividade)
     * ---------------------------------- */
    @media (max-width: 360px) {
        .header-main-bar {
            padding: 0 10px;
        }

        .top-header .right-icons {
            gap: 15px;
        }
    }

/* ===== main ===== */
/* ========================================= */
/* --- CSS GERAL E CARROSSEL --- */
/* ========================================= */
:root {
    --header-max-width: 768px;
    --cor-vermelha-principal: #fe3c47;
    --cor-fundo-separador: #FFFFFF;
    --cor-texto-principal: #222222;
    --cor-texto-secundario: #555555;
    --cor-tag-campanha-fundo: #000000;
    --cor-frete-verde: #00BFA5;

    /* Cores ajustadas */
    --cor-fundo-cupom-pink: #FFCCCC;
    --cor-fundo-black-friday: #E6E0FF;
    --cor-escudo-protecao: #8B4513;
    --cor-check-protecao: #DAA520;
}

body {
    margin: 0;
}

.main-content-wrapper {
    width: 100%;
    margin: 0 auto;
    max-width: var(--header-max-width);
    background-color: #FFFFFF;
    position: relative;
    cursor: grab;
}
.main-content-wrapper:active {
    cursor: grabbing;
}

/* --- CARROSSEL (Mantido) --- */
.product-carousel {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    will-change: transform;
}
.carousel-track.dragging {
    transition: none !important;
}
.carousel-slide {
    height: 100%;
    flex-shrink: 0;
    user-select: none;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.pagination-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 5;
}

/* ========================================= */
/* --- CSS BLOCO DE PREÇO --- */
/* ========================================= */
.price-bar-red {
    background: linear-gradient(90deg, #fe5335 0%, var(--cor-vermelha-principal) 100%);
    color: #FFFFFF;
    padding: 10px 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    overflow: hidden;
    margin-bottom: 0px;
}
.price-bar-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 0 4px 8px rgba(255, 59, 48, 0.4);
    z-index: 1;
}
/* --- ESTILO DO TIMER (BEM PEQUENO) --- */
.timer-container {
    position: absolute;
    top: 5px;
    right: 15px;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 3;
    font-size: 10px;
    line-height: 1;
    color: #FFC107;
    gap: 4px;
}

.timer-container svg {
    width: 10px;
    height: 10px;
    fill: #FFC107;
    margin-right: 4px;
}
.timer-container .timer-time {
    font-weight: bold;
}
/* FIM DO TIMER CSS */

.price-details-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}
.customer-tag {
    position: relative;
    top: 10px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FFFFFF;
}
.price-details-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}
.price-left {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 2px;
}
.discount-tag {
    background-color: #FFFFFF;
    color: var(--cor-vermelha-principal);
    font-size: 14px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0;
}
.discount-tag .discount-percent {
    font-size: 16px;
}
.current-price-group {
    display: flex;
    align-items: baseline;
    font-weight: 700;
}
.current-price-group .prefix {
    font-size: 10px;
    margin-right: 3px;
}
.current-price-group .price-value {
    font-size: 24px;
    line-height: 1;
}
.old-price {
    font-size: 14px;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    margin-left: 2px;
}
.apenas-text {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}
.customer-tag svg {
    color: #FFFFFF;
    width: 14px;
    height: 14px;
}
.current-price-group svg {
    color: #FFFFFF;
    width: 14px;
    height: 14px;
    margin-left: 7px;
}

/* ========================================= */
/* --- CSS BLOCO DE INFO AGRUPADO --- */
/* ========================================= */
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    border-bottom: none;
    cursor: pointer;
}
.installment-bar {
    color: var(--cor-texto-principal);
    font-weight: 500;
    margin-left: 5px;
}
.coupon-bar {
    background-color: #ffe2e7;
    color: #cb043b;
    font-weight: 600;
    padding: 8px 15px;
    margin: 0;
    font-size: 11px;
    line-height: 1;
    margin-left: 18px;
    margin-right: 143px;
    border-radius: 5px;
    height: 12px;
}
.info-icon-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.installment-bar .info-icon-left svg {
    color: #333333;
    width: 16px;
    height: 16px;
}
.coupon-bar .info-icon-left svg {
    color: #cb043b;
    width: 16px;
    height: 16px;
    margin-left: -10px;
}
.info-bar .chevron-right {
    font-size: 12px;
    color: #AAAAAA;
    margin-left: 10px;
}
.coupon-bar .chevron-right {
    color: #cb043b;
}
.separator-div {
    height: 10px;
    background-color: var(--cor-fundo-separador);
}

/* ========================================= */
/* --- CSS BLOCO TÍTULO E AVALIAÇÃO --- */
/* ========================================= */
.title-rating-block {
    border-bottom: 1px solid #EEEEEE;
    background-color: white;
    padding: 12px 4px;
    margin: 0 15px;
}

.title-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.title-line h1 {
    font-size: 16px;
    color: var(--cor-texto-principal);
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
}
.campaign-tag {
    background-color: var(--cor-fundo-black-friday);
    color: var(--cor-texto-principal);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}
.bookmark-icon {
    flex-shrink: 0;
    padding-left: 10px;
}
.bookmark-icon svg {
    color: var(--cor-texto-secundario);
    width: 24px;
    height: 19px;
    cursor: pointer;
}
.rating-line {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--cor-texto-secundario);
}
.rating-line .star {
    color: #FFC107;
    font-size: 14px;
}
.rating-line .rating-count {
    font-weight: 500;
}
.rating-line .sold-count {
    padding-left: 8px;
    border-left: 1px solid #ccc;
}

/* ========================================= */
/* --- CSS BLOCO DE ENVIO/FRETE --- */
/* ========================================= */
.shipping-block {
    padding: 15px;
    background-color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-left: 6px;
}
.shipping-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.shipping-left svg {
    color: var(--cor-texto-secundario);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.shipping-main-line {
    font-size: 14px;
    color: var(--cor-texto-principal);
    line-height: 1.2;
    margin-bottom: 5px;
}
.shipping-main-line .free-shipping-tag {
    color: var(--cor-frete-verde);
    font-weight: 600;
    margin-right: 5px;
    background-color: rgba(0, 191, 165, 0.1);
    padding: 1px 3px;
    border-radius: 2px;
}
.shipping-details-line {
    font-size: 12px;
    color: var(--cor-texto-secundario);
    line-height: 1.4;
}
.shipping-details-line .shipping-cost-old {
    text-decoration: line-through;
}
.shipping-block .chevron-right {
    color: #AAAAAA;
}

/* ========================================= */
/* --- CSS BLOCO PROTEÇÃO DO CLIENTE --- */
/* ========================================= */
.customer-protection-block {
    padding: 15px;
    background-color: #fff7ec;
    border-bottom: 8px solid #f8f8f8;
    height: 76px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.protection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.protection-header-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--cor-escudo-protecao);
}
.protection-header-title svg {
    width: 18px;
    height: 18px;
    stroke: var(--cor-escudo-protecao);
    fill: none;
    margin-right: 8px;
}
.protection-header .chevron-right {
    font-size: 12px;
    color: #AAAAAA;
}
.protection-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 15px;
    font-size: 12px;
    color: var(--cor-texto-principal);
}
.protection-item {
    display: flex;
    align-items: center;
}
.protection-item .check-mark {
    color: var(--cor-check-protecao);
    font-weight: bold;
    margin-right: 5px;
}

/* ========================================= */
/* --- CSS BLOCO DE OFERTAS/CUPONS --- */
/* ========================================= */

.offers-section {
    padding: 15px;
    background-color: var(--cor-fundo-separador);
    border-bottom: 10px solid var(--cor-fundo-separador);
    border-bottom: 8px solid #f8f8f8;
    background-color: white;

}
.offers-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--cor-texto-principal);
    margin: 0 0 10px 0;
}

.shipping-coupon-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #E0FFFF;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 37px;
}

.coupon-details {
    flex-grow: 1;
    color: var(--cor-texto-principal);
    padding-right: 15px;
}
.coupon-details h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
}
.coupon-details p {
    font-size: 12px;
    color: var(--cor-texto-secundario);
    margin: 0;
}

.btn-resgatar {
    background-color: var(--cor-frete-verde);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

/* ========================================= */
/* --- CSS DO POP-UP (MODAL) - AVANÇADO --- */
/* ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;

    /* ESCONDIDO POR PADRÃO com opacidade e scale para a transição */
    opacity: 0;
    pointer-events: none; /* Garante que não bloqueia cliques quando invisível */
    transition: opacity 0.3s ease;
}

/* Estado VISÍVEL do Overlay */
.modal-overlay.modal-show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    max-width: 80%;

    /* TRANSFORMAÇÃO INICIAL */
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito "pulo" */
    width: 223px;
}

/* Estado VISÍVEL do Conteúdo */
.modal-overlay.modal-show .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    color: var(--cor-frete-verde);
    font-size: 18px;
    margin-top: 10px;
}
.modal-content p {
    color: var(--cor-texto-secundario);
}
.modal-content button {
    margin-top: 20px;
    background-color: var(--cor-frete-verde);
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

/* Estilo do Ícone de Sucesso (Cupom) */
.modal-success-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    /* Cor do stroke do SVG (Ticket com check) */
    stroke: var(--cor-frete-verde);
    stroke-width: 1.5;
}

/* ===== videos ===== */
/* ========================================= */
/* --- CSS GERAL --- */
/* ========================================= */
:root {
    --primary-color: #FE2C55; /* Cor principal para o Like */
}

/* ========================================= */
/* --- CSS BLOCO VÍDEOS DE CRIADORES --- */
/* ========================================= */
.creators-videos-section {
    padding: 15px 0 15px 15px;
    background-color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-bottom: 10px solid var(--cor-fundo-separador, #F4F4F4);
}

.creators-videos-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cor-texto-principal, #222222);
    margin: 0 0 15px 0;
    padding-right: 15px;
}

.videos-container {
    display: flex;
    gap: 8px;
    overflow-x: scroll;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 8px solid #f8f8f8;
}
.videos-container::-webkit-scrollbar {
    display: none;
}

.video-card {
    flex-shrink: 0;
    width: 130px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    padding-top: 133%; /* Relação de aspeto 3:4 (133% de altura) */
}

.video-thumbnail-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Importante para o aspeto de thumbnail */
    border-radius: 8px;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    opacity: 0.8;
    z-index: 10;
}

.creator-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    display: flex;
    align-items: center;
    z-index: 5;
}

.creator-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid white;
    margin-right: 5px;
}

.creator-username {
    font-size: 11px;
    color: white;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
/* ========================================= */
/* --- MODAL ESTILO TIKTOK (FULL SCREEN) --- */
/* ========================================= */
.tiktok-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: none;
    z-index: 9000;
}
.tiktok-modal.show {
    display: block;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay de Play/Pause */
#playPauseOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9001;
    opacity: 1;
    transition: opacity 0.3s ease;
}
#playPauseOverlay .icon {
    font-size: 50px;
    color: white;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#playPauseOverlay.hidden {
    opacity: 0;
    pointer-events: none;
}


/* --- INTERFACE DE CONTROLE (LAYERS) --- */
.video-overlay-interface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header (Botão Fechar) */
.video-modal-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 10px;
    font-size: 24px;
}
.video-modal-header .close-btn {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Ações Laterais (Curtir/Comentar) */
.video-actions-sidebar {
    position: absolute;
    right: 10px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}
.video-action-item {
    cursor: pointer;
    font-size: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.video-action-item svg {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
}

/* NOVO: Estilo para o coração curtido */
.video-action-item.liked .heart-icon-wrapper svg {
    fill: var(--primary-color);
}

/* --- ESTILO DO PERFIL COM SÍMBOLO '+' --- */
.profile-action-item {
    display: block;
    width: 55px;
    height: 55px;
    position: relative;
    margin: 0 auto 15px auto;
}
.profile-action-item .avatar-modal {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FFC107;
}
.profile-action-item .follow-plus {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--cor-vermelha-principal, #FF3B30);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    font-weight: 500;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-action-item .follow-plus span {
    display: block;
    transform: translateY(-2px);
}


/* Informação do Vídeo (Rodapé) */
.video-info-footer {
    padding-left: 5px;
    margin-bottom: 90px;
}
.video-info-footer h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}
.video-info-footer p {
    font-size: 13px;
    margin: 0 0 5px 0;
}
.video-info-footer .music-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Botão COMPRE AQUI */
.compra-aqui-btn {
    position: absolute;
    bottom: 165px; /* Ajustado para dar espaço ao novo input de comentário */
    left: 15px;
    z-index: 100;

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

    background-color: rgba(102, 102, 102, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);

    color: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;

    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: fit-content;
}
.compra-aqui-btn .cart-icon-wrapper {
    background-color: #FF7700;
    border-radius: 4px;
    padding: 3px;
    margin-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
}
.compra-aqui-btn .cart-icon-wrapper svg {
    width: 16px;
    height: 16px;
    fill: white;
    stroke: none;
}

/* SVG ICON COLORS */
.video-actions-sidebar svg {
    stroke: none;
    fill: white;
    stroke-width: 0;
    width: 28px;
    height: 28px;
}

/* ========================================= */
/* --- CAMPO DE COMENTÁRIOS NO OVERLAY DO VÍDEO (NOVO) --- */
/* ========================================= */
.comment-overlay-input {
    position: absolute;
    bottom: 15px; /* Posição fixa no rodapé do modal de vídeo */
    left: 15px;
    right: 15px;
    z-index: 9002; /* Acima do vídeo, mas abaixo do modal de comentários/partilha */
    height: 40px;

    display: flex;
    align-items: center;
    padding: 5px 0;
    cursor: pointer; /* Indica que é clicável */
}

.comment-overlay-input-field {
    flex-grow: 1;
    /* Ajuste para ter o mesmo estilo da imagem de referência (preto opaco) */
    background-color: rgba(20, 20, 20, 0.85);
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 14px;
    border: none;
    pointer-events: none; /* Garante que o clique passe para o contêiner pai para abrir o modal */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 10px;
    height: 100%;
    display: flex;
    align-items: center;
}
.comment-overlay-input-field::before {
    content: "Add comment...";
    color: rgba(255, 255, 255, 0.6);
}

.comment-overlay-emojis {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 5px;
    pointer-events: none;
    position: absolute;
    right: 15px; /* Alinhar os emojis à direita do input */
}
.comment-overlay-emojis span {
    font-size: 20px;
    line-height: 1;
}

/* ========================================= */
/* --- CAMPO DE COMENTÁRIOS (NO MODAL DE COMENTÁRIOS) --- */
/* ========================================= */
/* Esconde o input bar do modal principal para evitar sobreposição */
.tiktok-modal .comment-input-bar {
    display: none;
}
.comment-input-bar { /* Aplicado ao modal de comentários */
    position: static;
    flex-shrink: 0;
    margin-top: auto;
    background-color: #FFFFFF; /* Fundo branco para o modal de comentários */
    border-top: 1px solid #EAEAEA;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    gap: 8px;
}

.comment-input-bar input {
    flex-grow: 1;
    background-color: #F5F5F5; /* Cinza claro para o input */
    border: none;
    border-radius: 20px;
    padding: 10px 12px;
    color: #333;
    font-size: 14px;
    outline: none;
}
.comment-input-bar input::placeholder {
    color: #999;
}

.comment-input-bar .emojis {
    display: flex;
    gap: 8px;
    order: 1; /* Coloca os emojis à direita do input */
}

/* Emojis Puros (Texto) */
.comment-input-bar .emoji-text {
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    color: #666; /* Cor dos ícones @ e emoji */
}

/* ========================================= */
/* --- MODAL DE COMPARTILHAMENTO (NOVO) --- */
/* ========================================= */
.share-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    color: white;
    padding: 20px 15px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 9500;
}
.share-modal.show {
    transform: translateY(0);
}
.share-modal h4 {
    margin-top: 0;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
}
.share-options {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    margin-bottom: 15px;
}
.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 11px;
    opacity: 0.8;
}
.share-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}
.share-icon.whatsapp { background-color: #25D366; font-size: 20px; }
.share-icon.facebook { background-color: #1877F2; font-size: 20px; }
.share-icon.copy { background-color: #666; font-size: 20px; }

.share-copy-link {
    display: flex;
    background-color: #333;
    border-radius: 8px;
    padding: 8px;
    align-items: center;
    font-size: 12px;
}
.share-copy-link input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0 10px;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.share-copy-link button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

/* ========================================= */
/* --- MODAL DE COMENTÁRIOS (ESTRUTURA) --- */
/* ========================================= */
.comments-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 80%;
    background-color: #FFFFFF;
    color: #333;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 9500;
    display: flex;
    flex-direction: column;
}
.comments-modal.show {
    transform: translateY(0);
}

.comments-header {
    padding: 15px;
    border-bottom: 1px solid #EAEAEA;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}
.comments-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}
.comments-header .close-comment-btn {
    position: absolute;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.comments-list-wrapper {
    overflow-y: auto;
    padding: 15px;
    flex-grow: 1;
}

.comment-item {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
    position: relative;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.comment-content {
    flex-grow: 1;
    padding-right: 50px;
}
.comment-content .username {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-right: 10px;
}
.comment-content .user-info {
     display: flex;
     align-items: center;
     margin-bottom: 5px;
     color: #666;
}
.comment-content .time {
    font-size: 12px;
}
.comment-content p {
    font-size: 14px;
    margin: 0 0 5px 0;
    line-height: 1.4;
}
.comment-content .view-replies {
    font-size: 12px;
    color: #999;
    cursor: pointer;
    margin-top: 5px;
    display: block;
}

/* Ícones de Like/Dislike ao lado direito do comentário */
.comment-actions-right {
    position: absolute;
    top: 5px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #999;
}
.comment-actions-right .like-icon,
.comment-actions-right .dislike-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
}
.comment-actions-right .like-icon svg,
.comment-actions-right .dislike-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: none;
}
.comment-actions-right .like-icon.liked {
    color: var(--primary-color);
}
.comment-actions-right .dislike-icon.disliked {
    color: #666;
}

/* Estrutura de Respostas Aninhadas */
.comment-item[style*="margin-left: 30px"] {
    margin-left: 30px !important;
}

/* ========================================= */
/* --- AJUSTE PARA DESLIZAMENTO DE RESPOSTAS (smooth) --- */
/* ========================================= */
.comment-replies-container {
    max-height: 0; /* Começa escondido, definindo a altura para 0 */
    overflow: hidden; /* Esconde o conteúdo que exceder o max-height */
    transition: max-height 0.4s ease-out; /* Define a transição para a altura máxima */
    padding-top: 0;
}

.comment-replies-container.show-replies {
    max-height: 500px; /* Altura máxima suficiente para exibir todas as respostas */
}

/* ========================================= */
/* --- POPUP DE NOTIFICAÇÃO (NOVO) --- */
/* ========================================= */
#notificationPopup {
    position: fixed;
    bottom: 80px; /* Acima do input de comentários ou do rodapé */
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Começa fora da tela, para baixo */
    background-color: rgba(255, 69, 0, 0.9); /* Laranja/Vermelho para avisos */
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#notificationPopup.show {
    transform: translateX(-50%) translateY(0); /* Desliza para cima */
    opacity: 1;
    visibility: visible;
}

/* ===== rating ===== */
/* ========================================= */
/* --- CSS RATING/AVALIAÇÕES --- */
/* ========================================= */
.ratings-section {
    padding: 15px;
    background-color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-bottom: 10px solid var(--cor-fundo-separador, #F4F4F4);
    box-sizing: border-box;
    border-bottom: 8px solid #f8f8f8;
}

.ratings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ratings-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--cor-texto-principal, #222222);
    margin: 0;
}

.ratings-header .view-more {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.average-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

.average-rating .score {
    font-size: 28px;
    font-weight: 700;
    margin-right: 10px;
}

.average-rating .stars span {
    font-size: 22px;
}

.review-card {
    padding: 15px 0;
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: flex-start; /* Alinhamento ao topo para que o avatar não puxe o texto */
    /* Removemos justify-content: space-between; pois as estrelas não estarão mais na ponta */
    margin-bottom: 8px;
}

.review-header .user-info-wrapper {
    display: flex;
    align-items: flex-start; /* Alinha o avatar e a coluna de texto no topo */
}

.review-header .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    flex-shrink: 0; /* Impede que o avatar encolha */
}

/* NOVO CONTÊINER PARA NOME E ESTRELAS */
.review-user-details {
    display: flex;
    flex-direction: column; /* Coloca nome e estrelas em coluna */
    line-height: 1.2;
}

.review-header .username {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px; /* Espaço entre nome e estrelas */
}

.review-header .stars {
    /* Garante que as estrelas no header tenham o tamanho desejado */
    font-size: 14px;
}
.review-header .stars span {
    font-size: 16px;
    line-height: 1;
}

/* --- AJUSTES DE TAMANHO DE FONTE (Mantido) --- */
.review-body {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.review-body .item-info {
    font-size: 11px;
    color: #999;
    margin: 5px 0 10px 0;
}

.review-body .item-info strong {
    font-weight: 600;
    color: #666;
}

/* --- ESTILOS DE EXPANSÃO DE TEXTO (Mantido) --- */
.review-text-content {
    max-height: 3.8em;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.review-text-content.expanded {
    max-height: 1000px;
}

.read-more-btn {
    font-size: 12px;
    color: #007bff;
    cursor: pointer;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* ===== profile ===== */
/* Estilos gerais e base do modal */
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #F4F4F4; }
.store-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #FFFFFF; z-index: 9999; display: none; flex-direction: column; transform: translateY(100%); transition: transform 0.3s ease-out; }
.store-modal.show { display: flex; transform: translateY(0); }

/* Perfil Gatilho */
.vendor-profile-section { display: flex; justify-content: space-between; align-items: center; padding: 15px; background-color: #FFFFFF; border-bottom: 8px solid #f8f8f8; }
.vendor-details { display: flex; align-items: center; flex-grow: 1; }
.vendor-logo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-right: 15px; border: 1px solid #EEEEEE; }
.vendor-info h3 { margin: 0; font-size: 16px; font-weight: 600; color: #222222; line-height: 1.2; }
.vendor-info p { margin: 3px 0 0 0; font-size: 13px; color: #666666; }
.visit-button { background-color: #F4F4F4; color: #222222; border: none; padding: 10px 20px; font-size: 14px; font-weight: 600; border-radius: 6px; cursor: pointer; text-decoration: none; text-align: center; flex-shrink: 0; }

/* Header do Modal */
.store-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 15px; background-color: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,0.05); flex-shrink: 0; }
.store-header .icon-btn { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: #222222; cursor: pointer; flex-shrink: 0; }
.store-header .search-bar-wrapper { flex-grow: 1; margin: 0 10px; position: relative; }
.store-header .search-input { width: 100%; padding: 8px 15px 8px 35px; border: none; background-color: #F0F0F0; border-radius: 7px; font-size: 14px; height: 35px; box-sizing: border-box; }
.store-header .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #999; }
.store-header .action-icons-right { display: flex; gap: 5px; }
.store-header .share-icon svg { width: 24px; height: 24px; }
.store-header .cart-icon svg { width: 18px; height: 18px; }
.store-header .back-btn { font-size: 24px; padding: 0 5px; font-weight: 600; }

/* Detalhes do Vendedor (Dentro do Modal) */
.store-profile-area { display: flex; align-items: flex-start; justify-content: space-between; padding: 15px; background-color: #FFFFFF; flex-shrink: 0; }
.store-profile-area .vendor-details-header { display: flex; align-items: center; margin-right: 15px; }
.store-profile-area .vendor-logo-large { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; margin-right: 10px; border: 1px solid #EEEEEE; flex-shrink: 0; }
.store-profile-area .vendor-info-header { align-self: flex-start; }
.store-profile-area .vendor-info-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: #222222; }
.store-profile-area .vendor-info-header p { margin: 2px 0 0 0; font-size: 14px; color: #666666; }
.store-profile-area .action-buttons-group { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.store-profile-area .action-btn-header { padding: 8px 12px; font-size: 13px; font-weight: 600; border-radius: 6px; cursor: pointer; text-align: center; line-height: 1.2; min-width: 90px; }
.store-profile-area .follow-btn { background-color: #FE2C55; color: white; border: none; }
.store-profile-area .message-btn { background-color: #FFFFFF; color: #222222; border: 1px solid #DDDDDD; }
.store-profile-area .follow-btn.followed { background-color: #EAEAEA; color: #666666; border: 1px solid #DDDDDD; }

/* --- CSS: CUPOM DESTACÁVEL ORIGINAL (RESTAURADO) --- */
.store-coupon-bar { position: relative; overflow: hidden; padding: 10px 15px; background-color: #F8FFFF; font-size: 13px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; border: 1px dashed #BFEBE8; border-radius: 8px; margin: 10px 15px; box-shadow: none; }
.store-coupon-bar::before { content: ''; position: absolute; top: 50%; left: -8px; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background-color: #FFFFFF; border-right: 1px dashed #BFEBE8; z-index: 1; }
.store-coupon-bar::after { content: ''; position: absolute; top: 50%; right: -8px; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background-color: #FFFFFF; border-left: 1px dashed #BFEBE8; z-index: 1; }
.store-coupon-bar .coupon-info { line-height: 1.4; color: #444444; }
.store-coupon-bar strong { color: #00CC99; font-weight: 700; }
/* Botão Resgatar do cupom */
.store-coupon-bar .resgate-btn { background-color: #00CC99; color: white; padding: 8px 15px; font-weight: 600; border: none; border-radius: 4px; cursor: pointer; flex-shrink: 0; min-width: 80px; box-shadow: 0 2px 4px rgba(0, 204, 153, 0.4); }

/* Navegação por Abas e Lista de Produtos */
.product-content-area { flex-grow: 1; background-color: #F4F4F4; overflow-y: auto; }
.tabs-navigation { display: flex; align-items: center; background-color: #FFFFFF; border-bottom: 1px solid #EEEEEE; padding: 0 10px; position: sticky; top: 0; z-index: 900; }
.tabs-navigation .tab-item { padding: 10px 10px 8px 10px; font-size: 14px; font-weight: 500; color: #666666; cursor: pointer; position: relative; transition: color 0.2s; flex-shrink: 0; }
.tabs-navigation .tab-item.active { color: #222222; font-weight: 600; }
.tabs-navigation .tab-item.active::after { content: ''; position: absolute; bottom: 0; left: 10%; width: 80%; height: 3px; background-color: #FE2C55; border-radius: 2px; }
.tabs-navigation .view-toggle { margin-left: auto; padding: 5px; cursor: pointer; color: #666; }

/* Lista de Produtos */
.product-list-container { padding: 0 10px; background-color: #FFFFFF; }
.product-list-item { display: flex; padding: 10px 0; border-bottom: 1px solid #EEEEEE; }
.product-list-item:last-child { border-bottom: none; }
.product-image-area { width: 120px; height: 120px; flex-shrink: 0; margin-right: 10px; border-radius: 6px; overflow: hidden; }
.product-image-area img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-details { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-title { font-size: 14px; font-weight: 500; line-height: 1.3; margin: 0 0 5px 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tags-and-stats { font-size: 12px; color: #666; margin-bottom: 5px; }
.tag-off { display: inline-block; background-color: #FF5A5A; color: white; font-weight: 600; padding: 2px 4px; border-radius: 3px; margin-right: 5px; line-height: 1; }
.stats-line { margin-top: 3px; }
.stats-line span { margin-right: 8px; }
.price-and-action { display: flex; justify-content: space-between; align-items: flex-end; }
.price-details { display: flex; flex-direction: column; }
.current-price { font-size: 18px; font-weight: 700; color: #FE2C55; margin: 0; line-height: 1.2; }
.old-price { font-size: 12px; color: #999; text-decoration: line-through; margin-top: 2px; }
.buy-button { display: flex; align-items: center; background-color: #FE2C55; color: white; border: none; padding: 8px 12px; font-size: 14px; font-weight: 600; border-radius: 6px; cursor: pointer; text-decoration: none; line-height: 1; flex-shrink: 0; transition: background-color 0.2s; }
.buy-button:hover { background-color: #D6234D; }
.buy-button svg { margin-right: 5px; }
.no-more-products { text-align: center; padding: 30px; color: #999; font-size: 14px; }

/* --- CSS: POPUP/MODAL DE SUCESSO DO CUPOM --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s;
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content {
    background-color: #FFFFFF; border-radius: 12px; padding: 30px; text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); transform: scale(0.8); transition: transform 0.3s ease-out;
}
.modal-overlay.show .modal-content { transform: scale(1); }
.modal-success-icon { width: 60px; height: 60px; color: #00CC99; stroke-width: 1.5; margin-bottom: 15px; }
.modal-content h3 { margin: 0 0 5px 0; font-size: 20px; font-weight: 700; color: #222; }
.modal-content p { margin: 0 0 20px 0; font-size: 14px; color: #666; }
#btnCloseModal { background-color: #FE2C55; color: white; border: none; padding: 10px 20px; font-size: 16px; font-weight: 600; border-radius: 6px; cursor: pointer; }

/* ===== info ===== */
/* --- ESTILOS EXCLUSIVOS PARA INFO.PHP --- */
.product-info-block {
    padding: 15px;
    background-color: #FFFFFF;
    border-bottom: 8px solid #f8f8f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.info-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
    margin: 15px 0 10px 0;
}
.info-section p, .info-section pre {
    font-size: 14px;
    color: #000000;
    line-height: 1.5;
    white-space: pre-wrap; /* Mantém quebras de linha e espaços do texto */
    margin-bottom: 5px;
}

/* Container do Texto Truncado */
#descricaoCompletaContainer {
    overflow: hidden;
    max-height: 200px; /* Altura máxima inicial para truncar */
    transition: max-height 0.3s ease-in-out;
}
/* Estado expandido */
#descricaoCompletaContainer.expanded-text {
    max-height: 2000px; /* Altura grande o suficiente para mostrar todo o conteúdo */
}

.ver-mais-btn-container {
    text-align: center;
    margin-top: 10px;
}
.ver-mais-btn {
    background: none;
    border: none;
    color: #FE2C55;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.ver-mais-btn svg {
    margin-left: 5px;
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}
.ver-mais-btn.rotated svg {
    transform: rotate(180deg);
}

/* ===== chat ===== */
/* ========================================= */
/* --- CSS: CHAT LAYOUT (COMPLETO) --- */
/* ========================================= */
#chat-container {
    position: fixed; top: 0; right: 0; width: 100%;
    /* 🌟 MUDANÇA 2: Trocado 100vh por 100svh (Small Viewport Height) */
    /* Isso força o container a ter o tamanho da área VISÍVEL, acima da barra do navegador iOS */
    height: 100svh;
    max-width: none; max-height: none;
    background-color: #f7f7f7; z-index: 1000; box-shadow: none; display: flex; flex-direction: column;
    font-family: Arial, sans-serif; border-radius: 0; overflow: hidden;
}

/* --- HEADER --- */
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; background-color: #FFFFFF; border-bottom: 1px solid #ddd; flex-shrink: 0; border-radius: 25px; }
.chat-icon-btn {
    background: none; border: none; font-size: 1.2em; cursor: pointer; color: #000;
    /* 🌟 MUDANÇA 3: Garantir que o link <a> não tenha sublinhado */
    text-decoration: none;
}
.chat-icon-btn.close-btn { font-size: 1.5em; font-weight: bold; }
.shop-info { display: flex; align-items: center; margin-left: 42px; margin-top: -24px;}
.shop-logo { width: 30px; height: 30px; border-radius: 50%; margin-right: 8px; object-fit: cover; }
.shop-details { display: flex; flex-direction: column; text-align: left; }
.shop-name { font-weight: bold; font-size: 14px; }
.shop-status { font-size: 11px; color: #888; }
.chat-icon-btn svg { width: 24px; height: 24px; }


/* --- ÁREA DE MENSAGENS (Avatares) --- */
.chat-messages-area {
    flex-grow: 1; padding: 15px 10px; overflow-y: auto; background-color: #f7f7f7; display: flex; flex-direction: column;
    /* Mantemos o padding de 120px para a barra do produto e footer */
    padding-bottom: 120px;
}
.message-row { display: flex; margin-bottom: 10px; align-items: flex-start; }
.message-row.bot-message { justify-content: flex-start; padding-left: 5px; }
.message-row.user-message { justify-content: flex-end; padding-right: 5px; }

/* Avatares */
.message-avatar { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.message-avatar svg {
    /* Define a cor do ícone, se necessário */
    color: #ffffffff; /* Cor do TikTok */
    /* Garante que o ícone esteja centralizado */
    display: block;
}
.bot-avatar { order: -1; margin-right: 8px; }
.user-avatar { order: 1; margin-left: 8px; background-color: #fe2c56de; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 14px; }

.message-bubble { padding: 8px 12px; border-radius: 18px; max-width: 80%; font-size: 14px; line-height: 1.4; word-wrap: break-word; }
.bot-message .message-bubble { background-color: #E2E2E2; color: #000; border-top-left-radius: 5px; }
.user-message .message-bubble { background-color: #FE2C55; color: #FFFFFF; border-top-right-radius: 5px; }


/* --- SEÇÃO FAQ / OPÇÕES RÁPIDAS (ESTILIZADA) --- */
.faq-section { padding: 10px; background-color: #FFFFFF; border-radius: 10px; margin-top: 15px; align-self: flex-start; max-width: 80%; }
.faq-question { font-weight: bold; margin-bottom: 10px; font-size: 14px; }

/* Contêiner de Agrupamento para Botões (CRÍTICO para estilo em linha) */
.faq-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Espaço entre os botões */
    margin-top: 5px;
}
.faq-option-btn, .faq-option-btn-reinserted {
    background-color: #f0f0f0;
    color: #000;
    border: 1px solid #E2E2E2;
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;
    display: inline-block;
    width: auto;
}

.chatbot-label { font-size: 10px; color: #888; text-align: right; margin-top: 5px; }


/* --- FOOTER E INPUT (CAMADA Z: 1002) --- */
.chat-footer {
    flex-shrink: 0; background-color: #FFFFFF; position: absolute; bottom: 0; width: 100%;
    z-index: 1002; /* Garante que fique acima da barra de produto */
    border-top: 1px solid #ddd;
    /* Mantemos o padding da safe-area para o "home bar" do iPhone */
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 18px;
}
.input-area { display: flex; padding: 8px 10px; gap: 5px; align-items: center; }
#chat-input { flex-grow: 1; padding: 10px 15px; border: 1px solid #ccc; border-radius: 20px; font-size: 14px; }
#send-btn { background: none; border: none; cursor: pointer; padding: 5px; }
#send-btn svg { width: 24px; height: 24px; color: #20b8f0; }


/* --- ESTILOS DO CARTÃO COLAPSÁVEL (SLIDE LATERAL, CAMADA Z: 1001) --- */
.product-collapse-bar {
    --product-bar-width: 340px; /* Largura para acomodar o texto */
    --product-bar-height: 60px;
    --visible-height: 25px; /* Altura da seta + borda visível */
    position: absolute;
    right: 0;
    top: 62%;
    width: var(--product-bar-width);
    height: 60px;
    transform: translate(0, -50%); /* Padrão: Aberto */
    background-color: #FFFFFF;
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    border-radius: 8px 0 0 8px;
}
/* Estado Fechado/Colapsado */
.product-collapse-bar.initial-hidden {
    /* Move o cartão para a direita, deixando apenas 20px visíveis (a seta) */
    transform: translate(calc(var(--product-bar-width) - 20px), -50%);
}

/* Botão de Toggle (Seta) */
.toggle-product-btn {
    z-index: 1003; /* CRÍTICO: Acima de TUDO para ser clicável */
    background-color: #FFF;
    border: 1px solid #ccc;
    border-right: none;
    cursor: pointer;
    position: absolute;
    left: -20px; /* Posiciona o botão na Borda esquerda visível */
    top: 50%;
    transform: translateY(-50%);
    padding: 0 5px;
    height: 40px;
    width: 25px;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}
.toggle-product-btn .arrow-icon {
    display: inline-block; transition: transform 0.3s ease-in-out;
    transform: rotate(0deg); /* Colapsado: Seta para a esquerda */
    font-size: 18px;
    color: #000;
}
.product-collapse-bar.initial-hidden .arrow-icon {
    transform: rotate(180deg); /* Colapsado: Seta para a direita */
}

/* Detalhes do Produto - Layout interno */
.product-details-bar {
    display: flex; align-items: flex-start; /* CRÍTICO: Alinha o conteúdo ao topo para permitir múltiplas linhas */
    padding: 8px 10px;
    gap: 10px;
    height: 100%;
    width: calc(100% - 25px);
    padding-left: 15px;
}
.product-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.product-info {
    flex-grow: 1; text-align: left; display: flex; flex-direction: column; font-size: 12px;
    line-height: 1.2;
    max-height: 100%;
}
.product-name {
    font-weight: 500; color: #333; white-space: normal; font-size: 9px; /* Aumentado o tamanho para caber mais texto */
    overflow: hidden;
}
.product-price { font-weight: bold; color: #E63946; }
.send-button-product { background-color: #E63946; color: white; border: none; padding: 8px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 14px; }

/* === Aparência da vitrine: ajustes visuais sem mudar conteúdo ou ações === */
:root{--header-max-width:480px;--header-main-height:56px;--tabs-height:40px;--header-total-height:96px;--footer-height:72px;--cor-vermelha-principal:#ff2858;--cor-texto-principal:#111;--cor-texto-secundario:#666}
html{background:#f5f5f5;scroll-behavior:smooth}body{width:100%;max-width:480px;margin:0 auto;padding-top:96px;padding-bottom:86px;background:#f7f7f7;color:#111;font-family:Roboto,'Helvetica Neue',Arial,sans-serif;-webkit-font-smoothing:antialiased}body *,body *::before,body *::after{box-sizing:border-box}button,input{font-family:inherit}a,button{-webkit-tap-highlight-color:transparent}
.top-header{position:fixed;top:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;height:96px;background:#fff;box-shadow:none;border-bottom:1px solid #eee}.header-main-bar{width:100%;height:56px;padding:10px 17px;margin:0;display:flex;align-items:center}.header-main-bar .header-logo{height:30px;max-width:130px;object-fit:contain}.icon-button{width:25px;height:28px;display:flex;align-items:center;justify-content:center;padding:0;color:#111}.icon-button svg{width:24px;height:24px}.right-icons{display:flex;align-items:center;gap:20px}.header-tabs-bar{height:40px;background:#fff}.tabs-content-wrapper{padding:0;display:flex;width:100%;justify-content:space-around}.tab-item{font-size:15px;font-weight:500;padding:10px 14px;color:#888}.tab-item.active{font-weight:600;color:#111}
.main-content-wrapper{max-width:480px;width:100%;margin:0;background:#fff;cursor:default}.product-carousel{aspect-ratio:1/1;background:#fff}.carousel-slide img{object-fit:contain}.pagination-badge{right:17px;bottom:17px;background:#909090;color:#fff;font-size:12px;border-radius:20px;padding:4px 7px}
.price-bar-red{min-height:80px;padding:14px 17px 11px;background:linear-gradient(110deg,#ff7026,#ff5013 65%,#ff650b);font-family:inherit;overflow:hidden}.price-bar-red:before{box-shadow:none;background:repeating-conic-gradient(from 40deg at 75% 50%,transparent 0deg 20deg,#ffffff08 20deg 35deg);pointer-events:none}.price-details-top{margin-bottom:9px;align-items:center;gap:12px}.price-left{margin:0;gap:5px}.discount-tag{color:#cf2850;border-radius:5px;padding:4px 5px}.discount-tag .discount-percent{font-size:16px}.current-price-group .price-value{font-size:31px;font-weight:700;letter-spacing:-.6px}.current-price-group .prefix{font-size:13px}.customer-tag{position:static;display:flex;align-items:center;gap:4px;font-size:12px}.price-details-bottom{display:flex;justify-content:space-between;align-items:center}.old-price{font-size:14px;margin:0}.apenas-text{font-size:12px}.timer-container{position:relative;float:right;top:auto;right:auto;margin:0 0 6px 10px;background:transparent;padding:0;color:#fff;gap:4px;font-size:13px;line-height:1.25}.timer-container svg{fill:#fff;width:14px;height:14px}.price-details-top{clear:both}.timer-time{font-variant-numeric:tabular-nums}
.info-bar{font-family:inherit;margin:0;padding:9px 17px;min-height:0;height:auto;border:0;background:#fff}.installment-bar{justify-content:flex-start;gap:12px;color:#222}.info-icon-left{font-size:14px;gap:7px}.installment-bar .info-icon-left svg{width:18px;height:18px}.coupon-bar{margin:0;padding:5px 17px 12px;background:#fff;border-radius:0;line-height:1.3}.coupon-bar .info-icon-left{gap:5px;color:#c92c54;border:1px solid #f0e4e8;border-radius:5px;padding:3px 5px;font-size:14px}.coupon-bar .info-icon-left svg{margin:0;width:14px;height:14px}
.title-rating-block{margin:0;padding:3px 17px 15px;border:0;background:#fff}.title-line{gap:13px;align-items:flex-start;margin-bottom:9px}.title-line h1{font-size:17px;line-height:1.3;font-weight:600;margin:0;color:#111}.campaign-tag{font-size:10px;border-radius:3px;padding:2px 4px;background:#f6eef4;color:#9b3a60}.bookmark-icon{padding:0;flex:0 0 20px}.bookmark-icon svg{width:19px;height:22px;color:#111}.rating-line{font-size:14px;gap:5px;color:#111}.rating-line .star{font-size:20px;line-height:1;color:#ffc028}.rating-line .rating-count{color:#42658d}.rating-line .sold-count{color:#666;border-left:1px solid #ddd;padding-left:7px}
.shipping-block{margin:0;padding:18px 17px;background:#fff;border-top:9px solid #f7f7f7;font-family:inherit}.shipping-left{gap:10px}.shipping-main-line{display:flex;flex-direction:column;gap:8px;font-size:15px;line-height:1.3}.shipping-main-line .free-shipping-tag{background:transparent;color:#277f80;font-weight:400;padding:0}.shipping-details-line{font-size:13px}.customer-protection-block{height:auto;min-height:118px;padding:18px 17px;background:#fff;border-top:9px solid #f7f7f7;border-bottom:0;font-family:inherit}.protection-header-title{font-size:15px;font-weight:400;color:#89652d}.protection-header-title svg{stroke:#89652d}.protection-details-grid{grid-template-columns:1fr 1fr;gap:7px 12px;padding-left:26px}.protection-item{font-size:13px;line-height:1.35}.protection-item .check-mark{color:#89652d}.offers-section{padding:18px 17px;background:#fff;border-top:9px solid #f7f7f7;border-bottom:9px solid #f7f7f7}.offers-section h2{font-size:18px;margin-bottom:16px}.shipping-coupon-card{padding:15px;border-radius:10px;background:#effafb;gap:10px}.coupon-details h3{font-size:17px;margin:0 0 4px;color:#277f80}.coupon-details p{font-size:13px;margin:0}.btn-resgatar{border-radius:24px;background:#1ab8b5;color:#fff}
.ratings-section,.vendor-profile-section,.product-info-block{width:100%;max-width:480px;margin:0 auto;background:#fff;border-bottom:9px solid #f7f7f7}.ratings-section{padding:20px 17px}.ratings-header h2{font-size:18px}.review-card{padding:14px 0;border-bottom:1px solid #f3f3f3}.review-text-content{font-size:15px;line-height:1.4}.vendor-profile-section{padding:20px 17px}.vendor-logo{width:54px;height:54px;border-radius:50%;object-fit:cover}.visit-button{border-radius:28px;background:#ff2858;color:#fff}.product-info-block{padding:20px 17px}.product-info-block h2{font-size:18px}
.fixed-footer-bar{position:fixed;top:auto;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;height:72px;padding:10px 12px;display:flex;align-items:center;gap:10px;background:#fff;border-top:1px solid #eee;box-shadow:none}.fixed-footer-bar .icon-link{flex:0 0 34px;gap:4px;font-size:11px;line-height:1.2;color:#111;text-decoration:none}.fixed-footer-bar .icon-link svg{width:22px;height:22px}.fixed-footer-bar .button-group{display:flex;flex:1;gap:9px;min-width:0}.fixed-footer-bar .button-group button{height:49px;margin:0;border:0;border-radius:28px;flex:1;padding:5px 10px;line-height:1.2;font-family:inherit;font-size:13px;font-weight:600}.fixed-footer-bar .btn-add-cart{background:#fff0f4;color:#d1194c}.fixed-footer-bar .btn-buy-coupon{background:#ff2858;color:#fff}
#visao-geral,#avaliacoes,#descricao{scroll-margin-top:100px}
@media(max-width:360px){.right-icons{gap:14px}.header-main-bar .header-logo{max-width:100px}.fixed-footer-bar{gap:6px;padding:9px 8px}.fixed-footer-bar .button-group{gap:6px}.fixed-footer-bar .button-group button{font-size:12px;padding:5px 7px}.current-price-group .price-value{font-size:28px}.protection-details-grid{padding-left:0}}

/* Bloco de oferta na mesma composição da referência enviada. */
.price-bar-red{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:8px;padding:14px 17px;min-height:82px;background:linear-gradient(105deg,#f16b36,#f44e21);align-items:center;isolation:isolate}
.price-bar-red:before{z-index:-1;background:repeating-conic-gradient(from 38deg at 75% 49%,transparent 0deg 24deg,#ffffff08 24deg 40deg)}
.price-bar-red .price-details-top,.price-bar-red .price-details-bottom{display:contents}
.price-bar-red .price-left{grid-column:1;grid-row:1;display:flex;align-items:center;gap:5px;min-width:0;margin:0;white-space:nowrap}
.price-bar-red .discount-tag{padding:4px 5px;border-radius:7px;background:#fff;color:#c32b50;flex-shrink:0;line-height:1.25}.price-bar-red .discount-percent{font-size:18px;font-weight:700}
.price-bar-red .current-price-group{display:flex;align-items:baseline;gap:2px;min-width:0}.price-bar-red .prefix{margin:0;font-size:13px;font-weight:500}.price-bar-red .prefix:empty:before{content:'£'}.price-bar-red .price-value{font-size:30px;line-height:1;font-weight:600;letter-spacing:-.7px}.price-bar-red .current-price-group svg{width:17px;height:17px;margin-left:2px;flex-shrink:0}
.price-bar-red .old-price{grid-column:1;grid-row:2;color:#ffccac;font-size:15px;line-height:1.25;margin:0;font-weight:400}
.price-bar-red .timer-container{grid-column:2;grid-row:1 / 3;align-self:stretch;float:none;position:static;display:grid;grid-template-columns:15px 1fr;grid-template-rows:auto auto;align-items:center;justify-content:end;gap:8px 5px;margin:0;padding:0;border-radius:0;background:none;color:#fff;font-size:15px;line-height:1.25;white-space:nowrap;text-align:right}
.price-bar-red .timer-container svg{display:none}.price-bar-red .timer-container:before{content:'ϟ';grid-column:1;grid-row:1;color:#fff;font-size:25px;font-weight:900;line-height:1}.price-bar-red .timer-container>span:not(.timer-time){grid-column:2;grid-row:1;font-size:15px;font-weight:600}.price-bar-red .timer-time{grid-column:1 / 3;grid-row:2;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.price-bar-red .timer-time:before{content:'Ends in ';font-weight:400}
.price-bar-red .customer-tag,.price-bar-red .apenas-text{display:none}
.main-content-wrapper>.installment-bar{display:none}
.main-content-wrapper>.coupon-bar{position:relative;display:flex;align-items:center;justify-content:space-between;padding:16px 17px 13px;min-height:56px;background:#fff;margin:0}
.main-content-wrapper>.coupon-bar:after{content:'›';font-size:28px;font-weight:400;color:#8c8c8c;line-height:1;margin-left:10px}.coupon-bar .info-icon-left{font-size:14px;font-weight:600;line-height:1.25;gap:4px;padding:4px 5px;border:1px solid #eee3e7;border-radius:8px;background:white;max-width:calc(100% - 25px)}.coupon-bar .info-icon-left svg{width:17px;height:17px;flex-shrink:0}
.main-content-wrapper>.title-rating-block{padding:3px 17px 17px;margin:0}.title-line h1{font-size:18px;line-height:1.28;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.title-line .campaign-tag{display:none}.title-line{gap:20px;margin-bottom:12px}.bookmark-icon svg{width:20px;height:25px}.rating-line{font-size:16px;gap:5px}.rating-line .star{font-size:23px}.rating-line .sold-count{font-weight:400;color:#666}
@media(max-width:400px){.price-bar-red{padding:12px 16px;column-gap:8px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.price-bar-red .price-value{font-size:27px}.price-bar-red .discount-percent{font-size:16px}.price-bar-red .timer-container>span:not(.timer-time),.price-bar-red .timer-time{font-size:13px}.price-bar-red .current-price-group svg{width:13px}.title-line h1{font-size:17px}}

/* Refinamento da faixa laranja conforme a referência. */
.price-bar-red{grid-template-columns:minmax(0,1fr) max-content;gap:8px 12px;min-height:80px;padding:13px 18px 12px;background:#f36532;isolation:isolate}
.price-bar-red::before{z-index:-1;box-shadow:none;background:linear-gradient(157deg,transparent 0 43%,#ef542400 43%,#ef5424 44% 63%,transparent 64%),linear-gradient(24deg,transparent 0 56%,#f77a434f 57% 75%,transparent 76%),linear-gradient(174deg,transparent 0 44%,#f879435c 45% 59%,transparent 60%),linear-gradient(105deg,#f16b36,#f05225)}
.price-bar-red .price-left{gap:5px}.price-bar-red .discount-tag{padding:5px 6px;border-radius:8px}.price-bar-red .discount-percent{font-size:18px;line-height:1.2}.price-bar-red .current-price-group{gap:3px}.price-bar-red .prefix{font-size:14px;font-weight:400}.price-bar-red .price-value{font-size:31px;font-weight:500;letter-spacing:-.8px}.price-bar-red .current-price-group svg{width:18px;height:18px;margin-left:1px}.price-bar-red .old-price{font-size:15px;color:#ffc6a4}
.price-bar-red .timer-container{display:grid;grid-template-columns:13px max-content;grid-template-rows:auto auto;justify-content:end;align-content:center;align-items:center;column-gap:5px;row-gap:10px;width:max-content;min-width:0;text-align:right}
.price-bar-red .timer-container::before{content:'';display:block;width:12px;height:19px;background:#fff;clip-path:polygon(42% 0,100% 0,65% 38%,100% 38%,18% 100%,38% 53%,0 53%);grid-column:1;grid-row:1;font-size:0}
.price-bar-red .timer-container>span:not(.timer-time){font-size:15px;line-height:1.2;font-weight:600;text-align:left}.price-bar-red .timer-time{font-size:15px;font-weight:600;line-height:1.2}.price-bar-red .timer-time::before{font-weight:400}
@media(max-width:400px){.price-bar-red{padding:12px 16px;column-gap:9px;min-height:75px}.price-bar-red .price-value{font-size:27px}.price-bar-red .discount-percent{font-size:16px}.price-bar-red .prefix{font-size:12px}.price-bar-red .current-price-group svg{width:14px;height:14px}.price-bar-red .timer-container>span:not(.timer-time),.price-bar-red .timer-time{font-size:13px}.price-bar-red .timer-container{column-gap:4px;row-gap:10px}.price-bar-red .old-price{font-size:13px}}
@media(max-width:340px){.price-bar-red{padding:11px 10px;column-gap:6px}.price-bar-red .price-value{font-size:24px}.price-bar-red .discount-tag{padding:4px}.price-bar-red .timer-container>span:not(.timer-time),.price-bar-red .timer-time{font-size:12px}}

/* Faixa de preço rosa (estilo campanha TikTok Shop) */
.price-bar-red{background:linear-gradient(100deg,#fc2a50 0%,#fa2c62 55%,#f72f86 100%)}
.price-bar-red::before{background:linear-gradient(160deg,transparent 0 45%,#ffffff14 46% 62%,transparent 63%),linear-gradient(20deg,transparent 0 58%,#ffffff10 59% 76%,transparent 77%),linear-gradient(0deg,#ffffff1f,transparent 45%)}
.price-bar-red .discount-tag{color:#fe2c55}

/* Descrição na mesma fonte do restante da página (em vez da monoespaçada do <pre>) */
.info-section pre, #descricaoCompletaContainer pre { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* Faixa de preço mais compacta */
.price-bar-red{min-height:60px;padding:8px 16px 7px;row-gap:3px}
.price-bar-red .price-value{font-size:25px}
.price-bar-red .discount-percent{font-size:15px}
.price-bar-red .old-price{font-size:12px}
.price-bar-red .timer-container{row-gap:5px}
.price-bar-red .timer-container>span:not(.timer-time),.price-bar-red .timer-time{font-size:13px}

/* Faixa de preço na fonte do TikTok Shop */
.price-bar-red, .price-bar-red *{font-family:'TikTok Sans',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.price-bar-red .discount-percent{font-weight:700}
.price-bar-red .prefix{font-weight:500}
.price-bar-red .price-value{font-weight:700;letter-spacing:0}
.price-bar-red .old-price{font-weight:500}
.price-bar-red .timer-container>span:not(.timer-time),.price-bar-red .timer-time{font-weight:600}

/* Nome do produto na fonte do TikTok Shop */
.title-line h1, .title-line h1 *{font-family:'TikTok Sans',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-weight:600}

/* ===== Mini carrinho ===== */
.mc-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:opacity .25s;z-index:10500}
.mc-overlay.show{opacity:1;pointer-events:auto}
.mc-sheet{position:fixed;left:50%;bottom:0;width:100%;max-width:480px;max-height:80vh;max-height:80svh;display:flex;flex-direction:column;background:#fff;border-radius:16px 16px 0 0;transform:translate(-50%,105%);transition:transform .28s ease;z-index:10501;font-family:'TikTok Sans',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#111;box-shadow:0 -8px 30px rgba(0,0,0,.18)}
.mc-sheet.show{transform:translate(-50%,0)}
.mc-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eee}
.mc-title{margin:0;font-size:17px;font-weight:700}
.mc-close{border:0;background:none;font-size:28px;line-height:1;color:#555;padding:0 4px;cursor:pointer}
.mc-body{overflow-y:auto;padding:14px 16px;-webkit-overflow-scrolling:touch}
.mc-item{display:flex;gap:12px}
.mc-img{width:84px;height:84px;object-fit:contain;border:1px solid #eee;border-radius:10px;background:#fff;flex-shrink:0}
.mc-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.mc-name{font-size:14px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mc-prices{display:flex;align-items:baseline;gap:6px}
.mc-price{font-size:17px;font-weight:700;color:#fe2c55}
.mc-old{font-size:12px;color:#888;text-decoration:line-through}
.mc-controls{display:flex;align-items:center;justify-content:space-between;margin-top:2px}
.mc-stepper{display:flex;align-items:center;border:1px solid #ddd;border-radius:20px;overflow:hidden}
.mc-step{width:34px;height:32px;border:0;background:#fff;font-size:18px;line-height:1;color:#111;cursor:pointer}
.mc-step:disabled{color:#ccc;cursor:default}
.mc-qty{min-width:30px;text-align:center;font-size:14px;font-weight:600}
.mc-remove{border:0;background:none;color:#888;font-size:13px;text-decoration:underline;cursor:pointer;padding:6px 0 6px 8px}
.mc-foot{padding:12px 16px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #eee}
.mc-subtotal{display:flex;justify-content:space-between;align-items:baseline;font-size:15px}
.mc-subtotal strong{font-size:20px;font-weight:700}
.mc-note{margin:2px 0 12px;font-size:12px;color:#888}
.mc-actions{display:flex;gap:10px}
.mc-btn{flex:1;height:48px;border:0;border-radius:26px;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.mc-btn-primary{background:#fe2c55;color:#fff}
.mc-btn-ghost{background:#fff0f4;color:#d1194c}
.mc-empty{text-align:center;padding:28px 0 12px}
.mc-empty-title{margin:0 0 4px;font-size:16px;font-weight:600}
.mc-empty-sub{margin:0;font-size:13px;color:#888}
.mc-has-badge{position:relative}
.mc-badge{position:absolute;top:-6px;right:-8px;min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:8px;background:#fe2c55;color:#fff;font-size:10px;font-weight:700;line-height:1;display:none;align-items:center;justify-content:center}
.mc-toast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,20px);background:rgba(0,0,0,.85);color:#fff;font-family:'TikTok Sans',-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:13px;padding:10px 16px;border-radius:20px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:10502;white-space:nowrap}
.mc-toast.show{opacity:1;transform:translate(-50%,0)}

/* Logo do vendedor: mostra inteira (sem cortar) dentro do círculo */
.vendor-logo,.vendor-logo-large,.shop-logo,.bot-avatar{object-fit:contain;background:#fff;padding:7px;box-sizing:border-box}
.bot-avatar,.shop-logo{padding:4px}

/* Logo do vendedor: imagem ja quadrada, preenche o circulo */
.vendor-logo,.vendor-logo-large,.shop-logo,.bot-avatar{object-fit:cover;padding:0;background:#fff}

/* Descrição: fonte e ritmo de texto do TikTok Shop (Inter ~ fonte do sistema do iPhone) */
.info-section h3{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-weight:500}
.desc-text{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:13.5px;font-weight:400;line-height:1.33;color:#121212}
.desc-text p{margin:0 0 4px}
.desc-text p.desc-h{font-weight:600;margin-top:8px}

/* Toda a página na mesma fonte (Inter). O seletor com :not(#_) vence as regras anteriores por classe. */
body, body *:not(#_){font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
button,input,textarea,select{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
