.two-line-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Container principal dos produtos */
#productsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 10px;
}

/* Card do produto */
.product-container:hover {
    transform: translateY(-8px);
}

.product-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

#product-description {
    font-size: 12px;
}

.product-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 290px;
    cursor: pointer;
    padding: 12px;
    position: relative;
}

/* Label de oferta */
.product-card-offer-label {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.offer-image img {
    width: 50px;
    height: auto;
}

.product-card-offer-label .label {
    position: absolute;
    right: 0px;
    font-weight: bold;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 10px;
}

/* Código do produto */
#product-code {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    text-align: left;
}

/* Imagem do produto */
#product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 140px;
    margin-bottom: 12px;
    background: #ffffff;
    border-radius: 4px;
}

#product-image-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Preços */
#product-pricing {
    /* margin-bottom: 8px; */
    text-align: left;
}

#product-price {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

#sale-price {
    font-size: 14px;
    font-weight: bold;
    color: #e74c3c;
}

#product-pricing small {
    font-size: 12px;
    color: #999;
}

/* Período de oferta */
#sale-period {
    /* margin-bottom: 8px; */
    text-align: left;
}

#sale-period small {
    font-size: 11px;
    font-weight: bold;
}

/* Ações do produto */
#product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-end;
}

#product-actions.with-actions {
    min-height: 88px;
}

#product-actions.no-actions {
    min-height: 0;
}

.product-container.no-actions {
    min-height: 320px;
}

#product-pricing.is-hidden,
#sale-period.is-hidden {
    display: none;
}

#product-status {
    text-align: left;
}

#product-status .label,
.product-status .label {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.label-success {
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success);
}

.label-warning {
    background-color: #ffc107;
    color: #212529;
}

.label-primary {
    background-color: #007bff;
    color: white;
}

.label-danger {
    background-color: #dc3545;
    color: white;
}

/* Botão WhatsApp */
.order-by-whatsapp {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.3s ease;
}

.order-by-whatsapp:hover {
    background-color: #128c7e;
    color: #ffffff;
}

.order-by-whatsapp img {
    width: 18px !important;
    height: 18px !important;
}

/* Estado vazio da busca */
.search-empty-state {
    width: 100%;
    text-align: center;
    padding: 32px 16px 22px;
    border: 1px dashed #d7dbe0;
    border-radius: 10px;
    background: #fafbfd;
    margin-top: 14px;
}

.search-empty-wrapper {
    width: 100%;
    flex: 0 0 100%;
}

.search-empty-state h3 {
    margin: 0 0 10px;
    font-size: 23px;
    font-weight: 700;
    color: #2c2c2c;
}

.search-empty-state p {
    margin: 0 auto 16px;
    max-width: 760px;
    font-size: 14px;
    color: #616b75;
}

.search-empty-clear-btn {
    min-width: 140px;
}

/* Bloco "Sobre nós" — banner de largura total da tela, usando as cores
   parametrizadas do menu (corFundoMenu → corHoverMenu) e corDaFonte.
   As variáveis --menu-from/--menu-to/--menu-text vêm de style="" no index.phtml. */
.sobreNos {
    margin: 42px 0 0;
    padding: 56px 24px;
    background: linear-gradient(135deg, var(--menu-from, #1d3557), var(--menu-to, #15263f));
    color: var(--menu-text, #ffffff);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    /* "Escapa" do container central para ocupar toda a largura da viewport */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.sobreNos-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.sobreNos h1 {
    text-align: center;
    margin: 0 0 14px;
    color: var(--menu-text, #ffffff);
    font-weight: 700;
}

.sobreNos p {
    margin: 0 auto;
    color: var(--menu-text, #ffffff);
    opacity: 0.92;
    line-height: 1.55;
}

@media (max-width: 767px) {
    .sobreNos {
        padding: 36px 18px;
    }
}

/* Responsividade */

/* Desktop - 5 colunas */
@media (min-width: 1200px) {
    .product-container {
        width: calc(20% - 12px);
        min-height: 380px;
    }

    /* Ajuste para carrossel em desktop */
    .section-container .product-container {
        width: 280px !important;
        min-width: 280px;
        flex-shrink: 0;
    }
}

/* Desktop médio - 4 colunas */
@media (min-width: 992px) and (max-width: 1199px) {
    .product-container {
        width: calc(25% - 11.25px);
        min-height: 360px;
    }

    /* Ajuste para carrossel em desktop médio */
    .section-container .product-container {
        width: 270px !important;
        min-width: 270px;
        flex-shrink: 0;
    }
}

/* Tablet - 3 colunas */
@media (min-width: 768px) and (max-width: 991px) {
    .product-container {
        width: calc(33.333% - 10px);
        min-height: 350px;
    }

    /* Ajuste para carrossel em tablet */
    .section-container .product-container {
        width: 260px !important;
        min-width: 260px;
        flex-shrink: 0;
    }
}

/* Mobile — todos os blocos de produtos viram carrossel horizontal de 1 card por vez,
   com scroll-snap centralizando o card e sem cortar o próximo card. */
@media (max-width: 767px) {
    #productsContainer.products-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        padding: 4px 12px 14px 12px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    #productsContainer.products-container .product-container {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transform: none !important;
        box-sizing: border-box;
        min-height: 420px;
    }

    #product-image {
        height: 160px;
    }

    #product-description {
        -webkit-line-clamp: 2;
        font-size: 14px;
    }

    .product-card {
        padding: 15px;
        min-height: 320px;
    }

    #product-code {
        font-size: 12px;
    }

    #product-price {
        font-size: 18px;
    }

    #sale-price {
        font-size: 16px;
    }

    #product-status .label {
        font-size: 12px;
        padding: 6px 12px;
    }

    .order-by-whatsapp {
        font-size: 14px;
        padding: 10px 15px;
    }

    .order-by-whatsapp img {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Banner Mobile */
#bannersCarouselMobile {
    margin-top: 16px;
    margin-bottom: 20px;
}

#bannersCarouselMobile .carousel-indicators {
    bottom: 10px;
}

#bannersCarouselMobile .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 3px;
}

/* Mobile pequeno — cards continuam ocupando 1 por vez (100% da área visível) */
@media (max-width: 480px) {
    #productsContainer.products-container .product-container {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        transform: none !important;
    }

    #product-image {
        height: 140px;
    }

    .product-card {
        padding: 12px;
        min-height: 300px;
    }

    #product-price {
        font-size: 16px;
    }

    #sale-price {
        font-size: 14px;
    }
}

/* Ajustes para melhor experiência */
.products-wrapper {
    width: 100%;
    overflow: hidden;
}

/* Animação suave para transições */
* {
    box-sizing: border-box;
}

/* Melhorias visuais adicionais */
.product-card:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Garantir que imagens não quebrem o layout */
img {
    max-width: 100%;
    height: auto;
}

.products-section-image {
    height: 1.5rem;
    width: 1.5rem;
    margin-right: 15px;
}

.products-section-title {
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.vitrine-section-title {
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.kits-section-title {
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.products-section-content {
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.section-actions {
    display: flex;
    gap: 10px;
}

.section-control {
    padding: 10px;
    background: #0088ff;
    color: #ffffff;
    border-radius: 100%;
    width: 2rem;
    font-size: 0.9rem;
    height: 2rem;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 15px !important;
    padding: 10px 2px !important;
    /* Adicionado padding lateral */
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    flex-shrink: 0;
    justify-content: flex-start !important;
    /* Voltando para flex-start para evitar cortes */
}

/* Ajuste no container wrapper para acomodar o padding */
@media (min-width: 1325px) {
    .section-container {
        width: 1325px;
    }

    .products-wrapper {
        width: 1325px;
        overflow: hidden;
    }
}


/* Ajuste específico para mobile */
@media (max-width: 767px) {}

/* Melhor dimensionamento para carrossel */
.section-container .product-container {
    width: 250px !important;
    min-width: 250px;
    flex-shrink: 0;
    min-height: 400px;
}

.section-container .product-container.no-actions {
    min-height: 340px;
}

/* Ajustes para imagem no carrossel */
.section-container #product-image {
    height: 160px;
}

/* Ajustes para descrição no carrossel */
.section-container #product-description {
    font-size: 13px;
    line-height: 1.4;
}

/* Ajustes para preços no carrossel */
.section-container #product-price {
    font-size: 17px;
}

.section-container #sale-price {
    font-size: 15px;
}

#productsContainer::-webkit-scrollbar {
    height: 6px;
    display: none;
}

#productsContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#productsContainer::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.vitrine {
    display: flex;
    align-content: center;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 100%;
    align-items: center;
}

/* Cards de Depoimento Modernos */
.depoimentos-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.depoimento {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    width: 280px;
    min-height: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.depoimento:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.depoimento-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-family: inherit;
}

.depoimento-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    text-align: justify;
    flex-grow: 1;
    margin-bottom: 20px;
    font-weight: normal;
}

/* Estrelas de avaliação */
.depoimento::after {
    content: "★★★★★";
    color: #ffc107;
    font-size: 16px;
    text-align: center;
    display: block;
    margin-top: auto;
}

/* Responsividade para depoimentos */
@media (max-width: 767px) {
    .sobreNos {
        margin-bottom: 24px;
    }

    .depoimentos-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        padding: 32px 12px 14px 12px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
    }

    .depoimento {
        flex: 0 0 85%;
        width: auto;
        max-width: 85%;
        padding: 20px;
        min-height: 180px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transform: none;
    }

    .depoimento-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .depoimento-text {
        font-size: 13px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .depoimento {
        flex: 0 0 88%;
        max-width: 88%;
        padding: 18px;
        min-height: 160px;
    }
}

a {
    text-decoration: none;
}

/* ========== Cabeçalho de Grupo / Resultado da Busca ========== */
.group-results-header {
    --menu-from: #1a1a1a;
    --menu-to: #3a3a3a;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 26px 20px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    margin: 12px 0 28px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    align-self: stretch;
}

.group-results-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--menu-from), var(--menu-to));
}

/* Título */
.group-header-title {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 280px;
}

.group-header-title h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1f1f1f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Toolbar de ordenação */
.group-header-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.group-toolbar-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.group-toolbar-label i {
    color: #9b9b9b;
    font-size: 0.85rem;
}

/* Pílulas de ordenação */
.group-sort-pills {
    display: inline-flex;
    align-items: center;
    background: #eef0f4;
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}

.sort-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a5a5a !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    background: transparent;
    border: none;
    white-space: nowrap;
    line-height: 1.2;
}

.sort-pill i {
    font-size: 0.85rem;
    opacity: 0.75;
    transition: opacity 0.25s ease;
}

.sort-pill:hover {
    color: #1f1f1f !important;
    background: rgba(255, 255, 255, 0.85);
}

.sort-pill:hover i {
    opacity: 1;
}

.sort-pill.active {
    background: linear-gradient(135deg, var(--menu-from), var(--menu-to));
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.sort-pill.active i {
    opacity: 1;
}

.sort-pill-label-short {
    display: none;
}

/* Estado vazio */
.group-results-empty {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 48px 24px;
    background: #ffffff;
    border: 1px dashed #d6d6d6;
    border-radius: 16px;
    color: #555;
    margin-bottom: 24px;
}

.group-results-empty i {
    font-size: 2.4rem;
    color: #b8b8b8;
    margin-bottom: 12px;
    display: inline-block;
}

.group-results-empty h4 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2b2b2b;
}

.group-results-empty p {
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: #6b6b6b;
}

.group-results-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--menu-from, #1a1a1a), var(--menu-to, #3a3a3a));
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.group-results-empty-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Responsivo */
@media (max-width: 992px) {
    .sort-pill-label {
        display: none;
    }

    .sort-pill-label-short {
        display: inline;
    }
}

@media (max-width: 768px) {
    .group-results-header {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-auto-rows: max-content !important;
        align-content: start !important;
        padding: 16px 18px 16px 22px;
        min-height: 0;
        height: auto;
        row-gap: 10px !important;
    }

    .group-header-title {
        display: block !important;
        flex: none !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: start !important;
    }

    .group-header-title h2 {
        font-size: 1.15rem;
        white-space: normal;
        margin: 0 !important;
    }

    .group-header-toolbar {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: nowrap;
        align-items: center;
        margin: 0 !important;
        padding: 0 !important;
        align-self: start !important;
    }

    .group-sort-pills {
        flex: 1;
        min-width: 0;
        justify-content: space-between;
    }

    .sort-pill {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .group-header-title h2 {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }

    .group-toolbar-label {
        display: none;
    }

    .sort-pill i {
        font-size: 0.8rem;
    }
}

/* ========== Lista de grupo (legacy): não usar carrossel mobile da home ========== */
.legacy-group-layout .legacy-group-products,
.legacy-group-layout.legacy-group-layout .legacy-group-products {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

/* Mesma largura máxima da vitrine / resultado da busca (#productsContainer): em telas
   grandes a home limita .products-wrapper a 1325px. O wrapper da página de grupo tem
   .legacy-group-products e herdava width:100% !important acima, esticando os cards. */
@media (min-width: 1325px) {
    .legacy-group-layout .sections .products-wrapper.legacy-group-products {
        width: 1325px !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.legacy-group-layout .legacy-group-products > .group-results-header,
.legacy-group-layout .legacy-group-products > .products-wrapper-shadow,
.legacy-group-layout .legacy-group-products > #legacyGroupProductsGrid,
.legacy-group-layout .legacy-group-products > .products-container,
.legacy-group-layout .legacy-group-products > .pagination_wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    clear: both;
}

/* Lista de cards na página Ver mais (grupo/submenu): mesmo grid da vitrine/home.
   layout_1.css (CA006299) define .products-container { width: 25% } e .product-container
   em linha com .product-card fixo — isso quebra a listagem ao abrir pelo menu "Ver todos".
   Aqui neutralizamos só dentro de #legacyGroupProductsGrid. */
.legacy-group-layout #legacyGroupProductsGrid.products-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    padding-top: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    /* Igual ao #productsContainer (resultado da busca): alinhar à esquerda, sem “faixa” centralizada */
    justify-content: flex-start !important;
}

.legacy-group-layout #legacyGroupProductsGrid .product-container {
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Mesmo modelo de card da home (grid #productsContainer): coluna flexível, sem altura fixa
   nem align-items:center — evita reativar #product-actions absoluto / width 89% do layout_1. */
.legacy-group-layout #legacyGroupProductsGrid .product-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 290px;
    padding: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.legacy-group-layout #legacyGroupProductsGrid .product-card div#product-actions,
.legacy-group-layout #legacyGroupProductsGrid .product-card #product-actions {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    justify-content: flex-end !important;
}

.legacy-group-layout #legacyGroupProductsGrid #product-actions .order-by-whatsapp,
.legacy-group-layout #legacyGroupProductsGrid #product-actions form,
.legacy-group-layout #legacyGroupProductsGrid #product-actions .action-btn,
.legacy-group-layout #legacyGroupProductsGrid #product-actions .btn-default,
.legacy-group-layout #legacyGroupProductsGrid #product-actions .btn-avisar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Deixa o hover igual ao bloco principal (.product-container:hover na home.css) */
.legacy-group-layout #legacyGroupProductsGrid .product-card:hover {
    transform: none !important;
}

@media (max-width: 767px) {

    /* Ordenação acima dos cards */
    .legacy-group-layout .group-results-header {
        position: relative;
        z-index: 12;
        isolation: isolate;
    }

    /* Ver mais (legacy group): lista vertical paginada — sem carrossel.
       A página de listagem completa não deve ser um carrossel; os cards
       ficam empilhados e a paginação aparece naturalmente abaixo. */
    .legacy-group-layout #legacyGroupProductsGrid.products-container,
    .legacy-group-layout #legacyGroupProductsGrid.section-container {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 16px !important;
        padding: 4px 0 14px 0 !important;
        scroll-snap-type: none !important;
        position: relative;
        z-index: 1;
    }

    .legacy-group-layout #legacyGroupProductsGrid .product-container {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        scroll-snap-align: unset !important;
        scroll-snap-stop: unset !important;
        transform: none !important;
        box-sizing: border-box;
    }

    .legacy-group-layout .pagination_wrap {
        position: relative;
        z-index: 3;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Wrapper da paginação extraída do .legacy-group-products: garante
   que fique sempre abaixo do carrossel/lista de cards e nunca dentro
   do scroll horizontal. */
.legacy-group-layout .legacy-group-pagination {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    clear: both;
    margin-top: 8px;
}

.legacy-group-layout .legacy-group-pagination .pagination_wrap {
    margin: 12px 0 24px;
}

@media (max-width: 480px) {

    .legacy-group-layout #legacyGroupProductsGrid .product-container {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* Botão "Avisar-me quando chegar" — regra base.
   Antes ficava dentro de um <style> condicional ($marcas) em home/index.phtml,
   o que escondia o estilo em clientes sem fornecedores cadastrados. */
.btn-avisar {
    text-align: center;
    justify-content: center;
    display: flex;
    width: 100% !important;
    padding: 6px 0px 6px 0px !important;
    background-color: var(--bs-warning-bg-subtle);
    line-height: unset;
    color: var(--bs-warning);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.btn-avisar:hover {
    background: var(--bs-warning-bg-subtle);
    color: var(--bs-warning);
}

.btn-avisar .button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}