:root {
    /* --secondary-color: #00c9a7; */
    --secondary-color: color-mix(in srgb, var(--primary-color) 85%, black 15%);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-radius: 16px;
    --transition: all 0.3s ease;

    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-right: env(safe-area-inset-right);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--light-color);
    font-family: 'Inter', sans-serif;
}

/* Componente: Header */
.header-vitrine {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0;
    margin-bottom: 2rem;
}

.store-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.header-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}


.ticket-status-company {
    border: 1px solid;
    border-radius: 4px;
    display: inline-block;
}

/* .meu-alerta-customizado {
border: 3px solid #4CAF50 !important;
border-radius: 15px !important;
} */

/* CSS "GLOBAL" - Afeta todos os alertas */
.swal2-popup {
    /* border: 2px solid #333 !important; */
    border-radius: var(--border-radius) !important;
}

.swal2-confirm {
    background-color: var(--primary-color) !important;
}

.swal2-confirm:hover {
    background-color: var(--secondary-color) !important;
}

.label-ticket {
    margin-left: 2px;
    margin-right: 2px;
    margin-bottom: 2px;
    font-size: small;
    font-weight: 400;
}

/* Componente: Container de Busca */
.search-container {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

/* Classe que será adicionada via JavaScript quando a rolagem acontecer */
.search-container.is-sticky .category-bar {
    position: sticky;
    /* Fixa a barra na tela */
    top: 0;
    left: 0;
    right: 0;
    /* Ocupa toda a largura */
    z-index: 1020;

    /* Estilos visuais para o estado "grudado" */
    border-radius: 0;
    /* Remove as bordas arredondadas */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    /* Garante que o conteúdo interno não saia do lugar */
    width: 100%;
    max-width: 1140px;
    /* Mesma largura do .container do Bootstrap, ajuste se necessário */
    margin: 0;
    /* Centraliza a barra */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Componente: Categoria Scroller */
.category-scroller {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}


.category-modal-container {
    display: flex;
    flex-direction: column;
    justify-items: end;
    align-items: end;
}

.category-filter {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.category-filter:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.category-filter.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0.5px 10px rgba(13, 27, 75, 0.2);
    transform: translateY(-2px);
}

.scroll-btn {
    position: absolute;
    top: 0;
    width: 35px;
    z-index: 2;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.scroll-btn i {
    font-size: 1.8rem;
    color: var(--text-dark);
    transition: transform 0.2s ease, color 0.2s ease;
    filter: drop-shadow(0 0 2px white);
}

.scroll-btn:hover i {
    transform: scale(1.15);
    color: var(--primary-color);
}

.btn-outline-custom {
    /* Cor do texto e da borda no estado normal */
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;

    /* Transição suave (copiado do Bootstrap) */
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Estado de HOVER (mouse em cima) */
.btn-outline-custom:hover {
    color: #fff;
    /* Texto fica branco */
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Estado de FOCO (clique ou navegação por teclado) */
.btn-outline-custom:focus {
    /* Sombra de foco com a sua cor primária */
    box-shadow: 0 0 0 0.25rem rgba(13, 27, 75, 0.5);
    /* <<< Ajuste o RGB da sua cor aqui */
}

/* Estado de ATIVO (pressionado) */
.btn-outline-custom:active {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#scrollLeftBtn {
    left: 0;
    padding-left: 0.5rem;
    justify-content: flex-start;
    background: linear-gradient(to right, white 60%, rgba(255, 255, 255, 0));
}

#scrollRightBtn {
    right: 0;
    /* padding-right: 0.5rem; */
    justify-content: flex-start;
    background: linear-gradient(to left, white 60%, rgba(255, 255, 255, 0));
}

#scrollLeftBtnProduct {
    height: 100%;
    top: auto;
    left: -1px;
    padding-left: 0.5rem;
    justify-content: flex-start;
    background: linear-gradient(to right, white 60%, rgba(255, 255, 255, 0));
}

#scrollRightBtnProduct {
    height: 100%;
    top: auto;
    right: -1px;
    padding-right: 0.5rem;
    justify-content: flex-start;
    background: linear-gradient(to left, white 60%, rgba(255, 255, 255, 0));
}

.product-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.category-section-title {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    padding-top: 10px;
    padding-left: 10px;
}

.product-item {
    display: flex;
    height: 27rem;
    width: calc(25% - (1.5rem * 3 / 4));
}

/* Componente: Card de Produto */
.product-card {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ribbon {
    width: 150px;
    height: 25px;
    position: absolute;
    top: 25px;
    right: -40px;

    transform: rotate(45deg);

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: color-mix(in srgb, var(--primary-color) 100%, transparent);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    z-index: 10;

    border-left: 1px dashed rgba(255, 255, 255, 0.5);
    border-right: 1px dashed rgba(255, 255, 255, 0.5);
}

.ribbon-product-related {
    top: 17px;
    right: -45px;
    font-size: 0.6rem;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image-home {
    height: 50%;
    object-fit: scale-down;
    margin-top: 3%;
    margin-bottom: 3%;
}


.product-image-wrapper {
    width: 100%;
    padding-top: 60%;
    margin-top: 3%;
    ;
    margin-bottom: 3%;
    position: relative;
    background: #fff;
}

.product-image,
.product-image-placeholder {
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
}

.product-image {
    object-fit: scale-down;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
}

.product-image-placeholder-modal {
    width: 200px;
    height: 200px;
    background: #eee;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: #ccc;
    font-size: 12rem;
}

.product-info-header{
    flex: 0 0 auto;
    margin-bottom: 16px;
}

.product-card-body {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.truncate-text-2-lines {
    overflow: hidden;
    /* Esconde o texto que "vaza" */
    text-overflow: ellipsis;
    /* Adiciona o "..." */

    /* A mágica do truncamento de múltiplas linhas: */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* O NÚMERO DE LINHAS DESEJADO */
    -webkit-box-orient: vertical;
}

.product-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    /* margin-bottom: 0.25rem; */
    height: 2.5rem;
}

.info-product-card {
    white-space: nowrap;
}

/* Card de produtos relacionados */
.product-mini-card {
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.product-mini-card:hover {
    transform: translate(1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.product-mini-card-image-wrapper {
    width: 100%;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.product-mini-card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 5px;
}

.product-mini-card-image-placeholder {
    width: 100%;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    color: #a0a0a0;
    font-size: 2rem;
}

.icon-placeholder {
    font-size: 2.5rem;
}

.product-mini-card .card-body {
    background-color: #fff;
}

.product-mini-card .card-text {
    font-size: 0.8rem;
    line-height: 1.2;
    max-height: 2.4rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
}

.content-dady-product-modal{
    gap: 8px;
}

.price-related-product {
    font-size: 1.2rem;
    max-height: 2.4rem;
    font-family: 'Poppins', sans-serif;
    color: var(--success-color);
}

.related-products-scroller {
    position: relative;

    flex-wrap: nowrap;
    overflow-x: auto;

    -ms-overflow-style: none;
    /* scrollbar-width: none; */
    scroll-behavior: smooth;

    align-items: center;
}

.related-products-item {
    width: 150px;
    flex-shrink: 0;
    height: 100%;
}

.product-desc {
    min-height: 2.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
}

.description-text {
    font-size: 1rem;
    color: #495057;
    text-align: left;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
}

.description-scroll-container{
    flex:1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 5px;
}

.description-text-details{
    /* max-height: 50dvh; */
    overflow-y: auto;
}

.product-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--success-color);
    white-space: nowrap;
}

.original-price {
    font-size: 0.8rem;
    /* Fonte pequena */
    font-weight: 400;
    /* Mais leve que o preço principal */
    color: var(--text-light, #6c757d);
    /* Cor cinza (usando sua variável) */
    text-decoration: line-through;
    /* O estilo "riscado" */
    line-height: 1;
    /* Garante que não ocupe muito espaço vertical */
}

.discount-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light, #6c757d);
    line-height: 1;
    /* Garante que não ocupe muito espaço vertical */
}

.dad-stock-badge {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    white-space: nowrap;
}

.stock-badge {
    /* background-color: rgba(240, 240, 244, 1); */
    background-color: color-mix(in srgb, var(--secondary-color) 7%, transparent);
    color: var(--secondary-color);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Componente: Botões */
.btn-primary-custom {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-primary-custom:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.category-section {
    display: flex;
    flex-direction: column;
    margin-top: 0.2rem;
}

/* Componente: Carrinho Flutuante */
.cart-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1030;
}

.cart-btn {
    background: #00c9a7;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn .cart-text {
    display: none;
}

.cart-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border: #00c9a7 2px solid;
    color: #00c9a7;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid white;
}

.modal.modal-static .modal-dialog {
    transform: none;
    animation: none;
}

/* Componente: Modal */
.modal-content {
    border-radius: 20px;
    border: none;
    min-height: 500px;
    height: 100%;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
}

.modal-product {
    max-width: 40vw;
    width: 40vw;
}

.modal-footer {
    background-color: transparent !important;
    flex: 0;
    overflow: visible !important;
    border: none;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.modal-footer-yield{
    display: flex;
    flex-direction: column;
    flex:1;
}

.button-footer {
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border: none;
    border-radius: 0;
    padding-bottom: 1.3rem;
    padding-top: 1.3rem;
    font-weight: bold;

    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.button-footer:hover {
    background-color: var(--secondary-color);
    color: white;
}

.button-footer:focus {
    background-color: var(--secondary-color);
    color: white;
    outline: none;

    box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary-color) 50%, transparent);
}

.btn.button-footer:active {
    /* * Usamos color-mix para criar um tom ligeiramente mais escuro que o hover,
* dando um feedback de "pressionado".
*/
    background-color: color-mix(in srgb, var(--secondary-color) 85%, black);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: none;
    /* Remove o brilho do foco durante o clique */
}

.button-footer:disabled,
.button-footer[disabled] {
    background-color: #dddddd;
    color: #3d3d3d;
    opacity: 0.5;
    cursor: not-allowed;
}

.segmented-control {
    position: relative;
    /* Pai para a barra absoluta */
    display: inline-flex;
    /* Faz o container se ajustar ao tamanho dos botões */
    background-color: white;
    /* Cor de fundo inativa */
    border: 1px solid var(--primary-color);
    border-radius: 0.875rem;
    /* Bordas arredondadas */
    padding: 4px;
    transition: all 0.3s ease;
}

.segmented-control__slider {
    position: absolute;
    top: 4px;
    bottom: 4px;

    /* A cor virá da sua variável CSS! */
    background-color: var(--primary-color, #0d1b4b);

    border-radius: 0.75rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);

    /* A MÁGICA DA ANIMAÇÃO: */
    /* Anima a mudança de 'left' e 'width' suavemente */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.segmented-control__button {
    /* Remove estilos de botão padrão */
    border: none;
    background: transparent;

    /* Posicionado acima do slider */
    position: relative;
    z-index: 1;

    /* Estilo do texto */
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--primary-color);
    /* Cor do texto inativo */

    /* Animação da cor do texto */
    transition: color 0.3s ease;
}

/* Estilo do botão ATIVO */
.segmented-control__button.active {
    color: white;
    /* Cor do texto ativo (contraste com o slider) */
}

.relateds-products-div{
    padding-right: 1rem;
    padding-left: 1rem;
}

.body-product-modal {
    flex:1;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    height: 100%;

    min-height: 0;
}

.change-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 1px;
    padding-bottom: 1px;
    border-radius: 8px;
    font-size: small;
    font-weight: 600;
}

.change-button:hover {
    background-color: var(--primary-color);
    color: white;
}


.content-product-modal {
    flex: 1;

    display: flex;
    flex-direction: column;

    min-height: 0;

    justify-content: space-between;
}

.product-title-in-body {
    font-size: 1.25rem;
    font-weight: bold;
    color: #343a40;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 16px;
}

.image-product-modal {
    max-width: 100%;
    height: auto;

    display: block;

    max-height: 350px;
    border-radius: 8px;
}

.image-container {
    flex: 0 0 35%;
    text-align: center;
}

/* Componente: Item do Carrinho */
.cart-item-row {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: background-color 0.2s ease;
}

.cart-item-row:hover {
    background-color: #f8f9fa;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
}

.qty-btn:disabled,
.qty-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
    box-shadow: none;
}

/* Componente: Estado Vazio */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
}

.empty-state i {
    font-size: 4rem;
    color: #ccc;
}

/* Utilitários */
.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: white;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 201, 167, 0.25);
}

section {
    scroll-margin-top: 140px;
}

section.is-sticky {
    scroll-margin-top: 140px;
}

/* Componente: Paginação */
#paginationControls {
    gap: 0.5rem;
}

#paginationControls .btn {
    font-weight: 600;
}

/* Componente: Footer */
.footer-vitrine {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-vitrine h5 {
    color: white;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
}

.footer-vitrine a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-vitrine a:hover {
    color: white;
}

.footer-vitrine .list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Modal de Categorias */
/* Categorias em Fluxo */
.categories-flow {
    display: flex;
    flex-wrap: wrap !important;
    gap: 0.75rem;
    line-height: 1.8;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}


.category-pills-container {
    display: flex;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    gap: 1px;
}

.category-pills-container::-webkit-scrollbar {
    display: none;
}

.category-pill:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.category-pill.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 27, 75, 0.2);
}

.category-pill i.bi-tag,
.category-pill i.bi-grid-3x3-gap {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.category-pill.active i.bi-tag,
.category-pill.active i.bi-grid-3x3-gap {
    color: white;
}

.category-pill i.bi-check-circle-fill {
    font-size: 0.9rem;
    color: var(--success-color);
}

.category-pill.active i.bi-check-circle-fill {
    color: white;
}

.modal-cart {
    max-width: 90vw;
    /* 70% da largura da tela */
    width: 90vw;
}

.cart-item-description {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (min-width: 1400px) {
    .modal-cart {
        max-width: 980px;
    }
}

@media (max-width: 992px) {
    .product-item {
        width: calc(33.333% - (1.5rem * 2 / 3));
        height: 26rem;
    }
}

@media (min-width: 768px) {

    .cart-btn {
        width: auto;
        height: auto;
        padding: 0.8rem 1.5rem;
        border-radius: 50px;
        font-size: 1rem;
    }

    .cart-btn .cart-text {
        display: inline;
    }

    .cart-btn .bi-cart3 {
        margin-right: 0.5rem;
    }
}

@media (max-width: 767px) {
    .product-mini-card:hover {
        transform: none;
        box-shadow: none;
    }

    .product-item {
        height: 24.5rem;
    }

    .product-grid-container {
        gap: 0px
    }

    .modal-footer {
        border-radius: 0;
    }

    .button-footer {
        border-radius: 0px;
    }

    .modal-cart {
        max-width: 100vw;
        width: 100vw;
        margin: 0;
        height: 100.1%;
    }

    .modal-cart .modal-content {
        height: 100%;
        border-radius: 0;
        /* Remove bordas arredondadas */
        border: none;
        /* Remove borda */
        overflow: auto;
    }

    .modal-cart .modal-header {
        border-radius: 0;
        /* Remove bordas do header */
        flex-shrink: 0;
        /* padding-top: calc(1.5rem + env(safe-area-inset-top)); */
    }

    .body-product-modal {
        display: flex;
        flex-direction: column;
        /* align-items: center; */
    }

    .product-item {
        width: 50%;
    }

    .image-product-modal {
        max-height: 200px;
    }



    .category-pills-container {
        gap: 0px;
    }

    .scroll-btn {
        display: none;
    }

    .form-control-lg {
        font-size: 0.95rem;
        padding: 0.6rem 0.8rem;
    }

    .input-group-text {
        padding: 0.6rem 0.8rem;
    }

    /* Categorias com fonte menor */
    .category-filter {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Header menor */
    .header-vitrine {
        padding: 0.5rem 0;
    }

    .store-logo {
        width: 50px;
        height: 50px;
    }

    .header-title {
        font-size: 1.1rem;
    }

    /* Cards de produtos ajustados */
    .product-name {
        font-size: 0.9rem;
        height: 2.2rem;
    }

    .product-price {
        font-size: 1.2rem;
        flex-wrap: nowrap;
    }

    .product-desc {
        font-size: 0.75rem;
    }

    .stock-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.25rem 0.25rem 0.25rem;
    }

    /* Botão adicionar menor */
    .btn-primary-custom {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .qty-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {

    /* Componente: Botões */
    .image-container {
        order: -1;
        /* Muda a ordem visual, colocando a imagem primeiro */
        width: 40%;
        /* Garante que o container ocupe toda a largura */
        margin-bottom: 16px;
        /* Adiciona um espaço abaixo da imagem */
    }

    body {
        background-color: white;
    }

    .ribbon {
        top: 20px;
        right: -45px;

        font-size: 0.6rem;
    }

    .ribbon-product-related {
        top: 10px;
        right: -50px;

        font-size: 0.4rem;
    }

    .btn-primary-custom {
        padding: 0.5rem;
        border-radius: 12px;
        font-weight: 600;
        transition: var(--transition);
    }

    .qty-btn {
        width: 40px;
        height: 40px;
    }

    .product-grid-container {
        gap: 0;
    }

    .category-section-title {
        border: none;
        padding-bottom: 0px;
    }

    .ticket-status-company {
        border-radius: 4px;
    }

    .label-ticket {
        margin-left: 2px;
        margin-right: 2px;
        margin-bottom: 2px;
        font-size: x-small;
        font-weight: bold;
    }

    .content-dady-product-modal {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .content-product-modal {
        flex: 1;
        /* width: 80%; */
    }

    .product-item {
        width: 50%;
        height: 19.5rem;
    }

    .product-title-in-body {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.0;
        margin-bottom: 12px;
    }

    .description-text{
        font-size: 0.8rem;
    }

    .description-text-details{
        /* max-height: 30dvh; */
        overflow-y: auto;
    }

    .category-section {
        margin-top: 0;
    }

    .input-group {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }

    .cart-float {
        bottom: 0rem;
    }

    /* Input ainda menor */
    .form-control-lg {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem;
    }

    .input-group-text {
        padding: 0.3rem 0.5rem;
    }

    /* Categorias mais compactas */
    .category-filter {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    /* Search container com menos padding */
    .search-container {
        padding: 0.3rem;
        border: none;
        border-radius: 0%;
    }

    /* Header mais compacto */
    .header-vitrine {
        padding: 0.5rem 0;
        margin-bottom: 0%;
    }

    .store-logo {
        width: 45px;
        height: 45px;
    }

    .header-title {
        font-size: 1rem;
    }

    /* Grid de produtos - 2 colunas mais espaçadas */
    #productsGrid {
        gap: 0.5rem;
    }

    .product-card {
        border-radius: 0px;
    }

    .product-card:hover {
        transform: none;
        box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
    }

    .product-name {
        font-size: 0.75rem;
        height: 2rem;
    }

    .product-price {
        font-size: 1.0rem;
    }

    .original-price {
        font-size: 0.7rem;
    }

    /* Carrinho flutuante menor */
    .cart-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    /* Modal mais compacto */
    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-body-checkout {
        display: flex;
        flex-direction: column;
    }

    .cart-item-row {
        padding: 0.5rem;
    }

    /* Pills de categoria no modal */
    .category-pill {
        font-size: 0.85rem;
        padding: 0.5rem 0.8rem;
    }

    section {
        scroll-margin-top: 95px;
    }

    section.is-sticky {
        scroll-margin-top: 105px;
    }

    .search-container.is-sticky {
        padding-top: calc(1rem + env(safe-area-inset-top));
        /* Adicionando padding-top como tentativa provisória de não cortar as tags */
    }

    .product-image-home {
        height: 40%;
    }

    .product-image-placeholder {
        height: 40%;
    }

    .discount-text {
        font-size: 0.8rem;
    }
}

/* Smartphones muito pequenos (até 375px) */
@media (max-width: 375px) {
    .form-control-lg {
        font-size: 0.8rem;
    }

    .category-filter {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .header-title {
        font-size: 0.9rem;
    }

    .product-name {
        font-size: 0.8rem;
        height: 1.9rem;
    }
}

[v-cloak] {
    display: none;
}


/* Override Select 2 style */

.select2.select2-container {

    border: var(--bs-border-width) solid var(--bs-border-color);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--bs-body-color);
    border-radius: var(--bs-border-radius);
}

.select2.select2-container.select2-container--below.select2-container--open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.select2-dropdown {
    border: var(--bs-border-width) solid var(--bs-border-color);

}

.select2-container--default .select2-results__option--highlighted:not([aria-selected=true]) {
    background-color: rgba(0, 1, 58, 0.08) !important;
    color: var(--primary-color) !important;
}

.select2-results__option[role=option][aria-selected=true] {
    background-color: var(--primary-color);
    color: #fff;
}

.select2-container .select2-selection--single {
    height: unset;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
    padding-right: 0;
}

.modal-body-product{
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}