@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root {
    /* PADRÕES DE CORES */
    --cor-primaria: #1e8ac8;
    --cor-secundaria: #0067ac;
    --cor-texto-primaria: #393939;
    --cor-texto-secundaria: #ffffff;
    --bg-color-container-main: #ffffff;
    --cor-link-primaria: #0067ac;
    --cor-link-secundaria: #ffffff;
    --bg-color-container-main: #fafafa;

    /* Font */
    --body-font: 'Poppins', sans-serif !important;
    --font-size-big: 1.2rem;
    --font-size-normal: 1rem;
    --font-size-medium: 0.85rem;
    --font-size-small: 0.75rem;
    --font-size-minimum: 0.7rem;

}


* {
    font-family: "Poppins", Verdana, Geneva, Tahoma, sans-serif;
    /* font-size: var(--font-size-medium); */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
}

header {
    background-color: #fff;
}

/* em webroot/css/app.css ou qualquer arquivo CSS utilizado */
@media (max-width: 768px) {
    header {
        display: none;
    }
}


.icon-size {
    font-size: 1.2rem;
    /* Aumente o valor conforme necessário */
}

.add-btn {
    position: absolute;
    right: 7px;
    bottom: 0px;
}

.price-value {
    color: var(--cor-principal);
    font-weight: bold;
}

.price-description {
    color: #ff0000;
}

.card-banner {
    /* Ajuste conforme necessário */
    min-height: 200px;
    max-height: 200px;

    /* Evita que conteúdo extrapole o tamanho máximo */
    overflow: hidden;
}

.card-img-top {
    /* Faz a imagem preencher todo o espaço sem distorcer,
       mas pode haver corte nas laterais (crop) */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-carousel {
    display: flex;
    overflow-x: auto;
    /* Habilita o scroll horizontal */
    scroll-behavior: smooth;
    /* Rolagem suave */
    scrollbar-width: thin;
    /* Ajusta a largura da barra no Firefox */
    padding-bottom: 8px;
    /* Espaço inferior para visualização melhorada */
}

/* INÍCIO CONFIGURAÇÃO INDICADOR DE STATUS LOJA ABERTA/FECHADA */
.status-indicador {
    display: inline-flex;
    padding: 2px 6px;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background-color: #f8f9fa;
    /* Fundo claro e discreto */
    color: #3c3c3c;
    border: 1px solid #dee2e6;
    /* Borda sutil */
}

.ponto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.aberto {
    background-color: #28a745;
    /* Verde */
}

.fechado {
    background-color: #dc3545;
    /* Vermelho */
}

/* FIM CONFIGURAÇÃO INDICADOR DE STATUS LOJA ABERTA/FECHADA */

/* INÍCIO CONFIGURAÇÃO BOTÃO SELETOR ENTREGA RETIRADA */
.btn-toggle {
    width: 100px;
    font-size: 0.75rem;
    background-color: #fff;
}

.btn-entrega.active,
.btn-retirada.active {
    border-color: #0d6efd;
    background-color: #0d6efd;
    color: white;
}

/* FIM CONFIGURAÇÃO BOTÃO SELETOR ENTREGA RETIRADA */

/* INÍCIO CONFIGURAÇÃO FOTO MODAL PRODUTO */
.product-image-container {
    width: 100%;
    /* Define a largura total do container */
    /* height: 380px; */
    /* Ajuste conforme necessário */
    overflow: hidden;
    /* Evita que a imagem ultrapasse o container */
    display: flex;
    justify-content: center;
    align-items: center;
}

@media only screen and (max-width: 767px) {
    .product-image-container {
        height: 280px;
    }
}

#img-produto {
    object-fit: contain;
}

@media only screen and (max-width: 767px) {
    #img-produto {
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    #categoria-container {
        max-height: none !important;
        overflow: visible !important;
        margin-bottom: 120px;
    }
}

/* .fixed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

.product-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    /* Garante que a imagem não distorça */
    /* border-radius: 0.5rem; */
    /* Bordas arredondadas, como você já tem na imagem */
}

/* FIM CONFIGURAÇÃO FOTO MODAL PRODUTO */

.menu-item:hover {
    background-color: #ffffff;
    border-radius: 5px;
}

.menu-item.active {
    background-color: #e9ecef;
    border-left: 4px solid #007bff;
}

.search-category-container {
    position: sticky;
    top: 45px;
    z-index: 1010;
    background-color: #fff;
}

.category-carousel {
    display: flex;
    overflow-x: auto;
    /* Habilita o scroll horizontal */
    scroll-behavior: smooth;
    /* Rolagem suave */
    scrollbar-width: thin;
    /* Ajusta a largura da barra no Firefox */
    padding-bottom: 8px;
    /* Espaço inferior para visualização melhorada */
}

/* 
        Garantir que os itens dentro de cada .carousel-item fiquem lado a lado
        (quando clonados). Usamos float ou flex, conforme preferir.
      */
.carousel-inner .carousel-item>div {
    float: left;
    /* Poderia usar display: inline-block ou flex também */
}

.margin_bottom {
    margin-bottom: 100px;
}

.margin_bottom_120 {
    margin-bottom: 120px;
}

.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    width: 600px;
    max-width: 80%;
    /* Defina o tamanho máximo da caixa de diálogo */
    text-align: center;
}

.custom-alert p {
    margin: 0;
    color: #333333;
}

.custom-alert button {
    margin-top: 10px;
    /* Adicione um espaço entre o texto e o botão */
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-alert button:hover {
    background-color: #0056b3;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fundo semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.custom-modal {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 80%;
}

.custom-modal p {
    margin: 0;
    color: #333333;
}

.custom-modal-button {
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-modal-button:hover {
    background-color: #0056b3;
}

.sticky-top-accordion {
    position: sticky;
    top: 100px;
    z-index: 1020;
    /* Prioridade para sobrepor outros elementos */
    /* background-color: white; */
    /* Garante visibilidade ao rolar */
}

.sticky-top-complementos {
    position: sticky;
    top: 0px;
    z-index: 999;
    background-color: white;
}

@media only screen and (max-width: 767px) {
    .sticky-top-complementos {
        top: 0px;
    }
}

/* Adicionando uma sombra leve no scroll */
.scrollable-wrapper::-webkit-scrollbar {
    height: 4px;
}

.scrollable-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scrollable-wrapper::-webkit-scrollbar-thumb {
    background: rgb(22, 65, 151);
    border-radius: 4px;
}

.scrollable-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgb(12, 53, 136);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .scrollable-wrapper {
        padding: 0;
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0px;
    padding: 5px;
    width: fit-content;
}

.qty-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    width: 25px;
    height: 25px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.qty-btn:hover {
    background: #e9ecef;
}

.qty-btn:active {
    background: #d6d8db;
}

.qty-input {
    width: 42px;
    height: 25px;
    border: none;
    text-align: center;
    background: transparent;
    outline: none;
}