﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family:  'Open Sans', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    background-color: #fff;
    color: #666;
    height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

input {
    color: currentColor;
}

.color-current {
    color: currentColor;
}

/* ========= Main Cabeçalho =========== */
.main-header {
    /*position: fixed;
    z-index: 1;*/
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 60px;
    height: auto;
    width: 100%;
    background-color: #DF4C0D;
    color: #fff;
    box-shadow: 2px 0px 5px rgba(0,0,0,.1);
    padding: 10px 20px;
}

.main-header > div {
    display: flex;
}

.main-header .mh-center {
    flex: 1;
    padding: 0 20px;
    font-size: .9em;
    color: #666;
    max-width: 100%;
}

.main-header .mh-left {
    align-items: center;
}

.main-header a {
    color: currentColor;
    text-decoration: none;
}

.main-header .mh-logo {
    max-height: 40px;
}

.us-local {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 7px;
    border-left: 1px solid #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    min-width: 100px;
}

.us-local-cidade {

}

.us-local .wrapper {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .9em;
}

.us-local .label {
    font-size: .7em;
    width: 100%;
    color: #888;
}

.us-local:hover {
    background-color: #f5f5f5;
}

.carrinho-icone {
    position: relative;
    font-size: 1.3em;
}

.carrinho-icone .cr-qtd {
    position: absolute;
    z-index: 1;
    top: 0px;
    right: -10px;
    background-color: #fff;
    border: 1px solid coral;
    color: coral;
    border-radius: 50%;
    height: 1.8em;
    width: 1.8em;
    font-size: .55em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-footer {
    border-top: 1px solid #ddd;
    font-size: .8rem;
}

@media (max-width: 760px) {

    .main-header {
        flex-wrap: wrap;
        padding: 10px;

    }
    .main-header .mh-center {
        order: 3;
        flex: 1 0 100%;
        padding: 0;
        margin-top: 5px;
    }
}

/* ========= Main Conteudo ============= */
.main-content {
    flex: 1;
    /*margin-top: 60px;*/
    width: 100%;
    /*height: calc(100% - 60px);*/
    overflow-x: hidden;
    overflow-y: auto;
}

/* =========== Pagina ============ */
.page-wrapper {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-content {
    overflow-y: auto;
    flex: 1;
    /*margin-top: 10px;*/
}

.x-pg-m {
    padding: 20px;
}

.page-container {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 760px) {

    .x-pg-m {
        padding: 10px;
    }

    .page-container {
        width: 100%;
    }
}

/* ============== IziModal ============= */
.iziModal {
    border-radius: 1px !important;
}


/* ======== Grupo de items lista =========== */
.x-group-itens {
    display: flex;
    flex-direction: column;
    font-size: 1em;
}

.x-group-itens .x-gi-title,
.page-title {
    font-size: 1.3em;
    font-weight: bold;
    margin: 0;
    margin-bottom: 20px;
}

.x-group-itens .x-gi-title span,
.page-title span {
    border-bottom: 2px solid coral;
}


.x-group-itens .x-nav {    
    justify-content: flex-start;
    flex-wrap: wrap;
}

.x-group-itens .x-nav .x-nav-item {
    flex: none;
}

@media(max-width: 760px) {

    .x-group-itens .x-nav {
        flex-direction: column;
    }
}

/* ========== item imagem ========= */

.x-img-item-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 120px;
    overflow: hidden;
    margin: 0 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
}

.x-img-item-1 .logo-circle {
    max-height: 4em;
    max-width: 4em;
    margin-bottom: 10px;
    font-size: 3em;
}

.x-img-item-1 .li-nome {
    font-size: .8em;
    height: 3em;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-wrap;
    color: coral;
}


/* ======== Navegacao lista ============ */
.x-nav {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
}

.x-nav-item {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ======= Formulario/Controles ========= */

/* >> Input icon */
.x-input-icon {
    display: flex;
    background-color: #fff;
    font-size: 1em;
    align-items: center;
    padding: 0 .50em;
}

.x-input-icon > i {
    font-size: 1.2em;
    padding: .25em;
}

.x-input-icon > input {
    flex: 1;
    border: none;
    font-size: 1em;
    padding: .50em;
}

.x-input-icon > input:focus,
.x-input-icon > input:active {
    outline: none;
}

/* >> Input quantidade */
.input-qtde {
    display: inline-flex;
    flex-direction: row;
    /* align-items: center; */
    border: 1px solid #ddd;
}

.input-qtde .fa {
    padding: .50em;
    cursor: pointer;
}

.input-qtde .fa-plus {
    border-right: 1px solid #ddd;
}

.input-qtde .fa-minus {
    border-left: 1px solid #ddd;
}

.input-qtde input {
    border: none;
    min-width: 0;
    padding: 0 5px;
}

.input-qtde input:hover {
    /*outline: none;*/
}

.input-qtde .fa:hover {
    background-color: #f5f5f5;
}


/* ======== Pesquisa ======== */
.card-pesquisa {
    box-shadow: 0px 0px 4px rgba(0,0,0,.1);
}

/* ======== Lojista ======== */
.card-lojistas .x-result-item {
    width: 33%;
    min-width: 0;
    padding: 5px;
    max-width: none;
}

.card-lojistas a:hover {
    color: currentColor;
    text-decoration: none;
}

.card-lojista-wrapper {
    height: 100%;
    width: 100%;
}

.card-lojista {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 0;
    height: 100%;
    width: 100%;
}

.card-lojista:hover,
.card-lojista:active {
    background-color: #f5f5f5;
}

.card-lojista .cl-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
}

.card-lojista .cl-right {
    font-size: .9em;
    flex: 1;
}

.card-lojista .li-nome {
    font-weight: bold;
    margin-left: 10px;
}

.card-lojista .cl-rodape {
    background-color: #fafafa;
    padding: 5px;
    margin-left: -10px;
    margin-top: 5px;
    margin-right: -10px;
    font-size: .8em;
    text-align: center;
}

.card-lojista-detalhes .titulo {
    font-size: 1.2em;
    font-weight: bold;
}

.card-lojista-detalhes .info {
    color: #999;
    font-size: .8em;
}

.card-lojista-detalhes {
    margin-bottom: 10px;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.card-lojista-detalhes.hover:hover {
    background-color: #f5f5f5;
}

@media (min-width: 761px) and (max-width: 1000px) {

    .card-lojistas .x-result-item {
        width: 50%;
    }
}

@media (max-width: 760px) {

    .card-lojistas .x-result-item {
        width: 100%;
    }

    .card-lojista-detalhes {
        font-size: .8em;
    }
}

/* ======== Produto ======== */
.card-produtos .x-result-item {
    width: 25%;
}

.card-produto {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #ddd;
    text-align: center;
    padding: 10px;
    margin: 5px;
    /*height: 100%;*/
    width: 100%;
}

.card-produto:hover,
.card-produto:active {
    background-color: #f5f5f5;
}

.card-produto .detalhes {
    flex: 1;
}

.card-produto img {
    min-height: 4em;
    max-height: 12em;
    max-width: 100%;
    margin-bottom: 10px;
}

.card-produto .descricao {
    color: #444;
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
    max-width: 270px;
    height: 2.7em;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*.card-produto*/ .valor-1 {
    color: #888;
    text-decoration: line-through;
    font-size: .9em;
    display: block;
    /*margin-bottom: 5px;*/
}

/*.card-produto*/ .valor-2 {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: coral;
    margin-bottom: 5px;
}

.texto-indisponivel {
    display: inline-block;
    background-color: #aaa;
    color: #fff;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    width: 100%;
}

.card-produto .wrapper {
    position: relative;
}

.card-produto .tipo,
.produto-detalhes .tipo {
    position: absolute;
    z-index: 5;
    bottom: 0;
    left: 0;
    background-color: gray;
    color: #fff;
    padding: 2px 5px;
    font-size: .7em;
    white-space: nowrap;
}

.tipo.tp-produto {
    background-color: #4CAF50;
}

.tipo.tp-servico {
    background-color: #FF9800;
}

.sob-demanda {
    color: #a0140a;
}

@media(max-width: 760px) {        

    .card-produtos .x-result-item {
        width: 100%;
    }

    .card-produto {
        display: inline-flex;
        flex-direction: column;
        width: 100%;       
    }

    .card-produto .wrapper {
        margin-bottom: 10px;
    }

    .card-produto .detalhes {
        margin-left: 10px;
    }

    .card-produto object {
        max-height: 4em;        
    }

    .card-produto img {
        max-height: 4em;
    }

    .card-produto .wrapper {
        display: flex;
        flex-direction: row;
    }

    .card-produto .detalhes .valor {
        display: flex;
        justify-content: space-between;
        align-content: center;
    }            
}


/* Produto detalhes */
.produto-detalhes .cabecalho {
    padding: 10px;
    text-align: right;
    display: flex;
    justify-content: space-between;
}

.produto-detalhes .cabecalho .fa-times {
    color: #ef4545;
    opacity: .5;
    font-size: 1.2em;
    cursor: pointer;
}

.produto-detalhes .cabecalho .fa-times:hover {
    opacity: 1;
}

.produto-detalhes .cabecalho {
    border-bottom: 1px solid #ddd;
}

.produto-detalhes .wrapper-img img {
    max-height: 350px;
    max-width: 100%;
    width: auto !important;
    margin: 0 auto;
}

.produto-detalhes .wrapper-img {
    border-bottom: 1px solid #ddd;
    position: relative;
}

.produto-detalhes .conteudo .prod-nome {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.produto-detalhes .conteudo .valor-qtde {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.produto-detalhes .prod-qtde {
    width: 4.5em;
    text-align: center;
}

.produto-detalhes .vq-left {
    display: flex;
    flex-direction: column;
}

.produto-detalhes .conteudo {
    padding: 20px;
}

.produto-detalhes .conteudo button {
    flex: 1;
}

.produto-detalhes .conteudo .valor-qtde > .vq-right {
    margin: 0 20px;
}

.produto-detalhes .desc-titulo {
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 20px;
}

.produto-detalhes .desc-conteudo {
    color: #888;
}

@media (max-width: 760px) {


    .produto-detalhes {
        height: 100vh !important;
        /*height: calc(100vh - 98px) !important;*/
        max-height: none !important;
        max-width: none !important;
        margin: 0 auto;
        /*margin-top: 98px;*/
    }

    .produto-detalhes .wrapper-img {
        flex: 1;
    }

    .produto-detalhes .iziModal-content {
        display: flex;
        flex-direction: column;
        height: 100% !important;
    }

    .produto-detalhes .iziModal-wrap {
        height: 100% !important;
    }


    .produto-detalhes .conteudo button {
        flex: 1 0 100%;
        margin-top: 10px;
    }

    .produto-detalhes .conteudo .valor-qtde {
        flex-wrap: wrap;
    }

    .produto-detalhes .vq-left {
        flex: 1;
    }

    .produto-detalhes .conteudo .valor-qtde > .vq-right {
        margin: 0;
    }
}

/* ============== Carrinho item ============= */
.card-cr-item {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.card-cr-item .wrapper-img {
    width: 6em;
    text-align: center;
}

.card-cr-item .img {
    max-height: 4em;
    max-width: 6em;
}

.card-cr-item .detalhes {
    flex: 1;
}

.card-cr-item .cri-descricao {
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
}

.card-cr-item .crd-bottom {
    display: flex;
    flex-direction: row;
}

.card-cr-item .prod-qtde {
    max-width: 4.5em;
    text-align: center;
}

.card-cr-item:hover {
    background-color: #f5f5f5;
}

.cr-resumo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
    padding-top: 10px;
    /*border-bottom: 1px solid #ddd;*/
}

.cr-resumo .total {
    font-weight: bold;
    font-size: 1.2em;
}

.cr-resumo .total span {
    color: coral;
}

@media (max-width: 760px) {

    .card-cr-item {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
        padding-left: 0;
    }

    .card-cr-item .wrapper-img {
        margin-bottom: 10px;
    }

    .card-cr-item .crd-bottom {
        margin-bottom: 10px;
    }

    .card-cr-item .detalhes {
        padding: 0 !important;
    }
}

/* ========= Icones cor =========  */
.phone-color {
    color: #0ac175;
}

.map-marker-color {
    color: #9C27B0;
}

.whatsapp-color {
    color: green;
}

.light-on-color {
    color: #FFC107;
}

.check-color {
    color: #4CAF50;
}

/* ======== Botoes ======== */

button[disabled] {
    color: #9E9E9E !important;
    border-color: #9E9E9E !important;
}

.btn-v1 {
    border: none;
    background-color: transparent;
    border: 1px solid currentColor;
    padding: .30em .80em;
    color: #444;
    font-size: 1em;
}

.btn {
    border-radius: 2px;
}

/* ======== item template ======== */
.x-template {
    display: none;
}

/* ======== Imagem ======== */
.logo-circle {
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 1em;
    width: 1em;
    border: 1px solid #ddd;
}

/* ===== Scroll ======= */
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

/* ========= Nav tabs ========= */

.nav-tabs .nav-link {
    color: currentColor;
}

.nav-tabs .nav-link.active {
    border: none;
    color: coral !important;
    border-bottom: 2px solid coral !important;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:active {
    border: none;
    color: coral;
}

.nav-tabs .nav-item {
    flex: 1;
    text-align: center;
}

/* ======= Carousel =========== */
.carousel-control-next .fa,.carousel-control-prev .fa {
    color: coral;
    font-size: 4rem;
}

/* ====== Loading ======== */
.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid coral;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: coral transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading {
    position: fixed;
    z-index: 1000;
    height: 100vh;
    width: 100%;
    background-color: rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === iziToast === */
.iziToast > .iziToast-body .iziToast-buttons > button {
    background-color: #3d4042;
    color: #fff
}

    .iziToast > .iziToast-body .iziToast-buttons > button:hover {
        background-color: #5b686f;
    }

.iziToast.toast-success > .iziToast-body .iziToast-buttons > button {
    background-color: #4cae50;
}

    .iziToast.toast-success > .iziToast-body .iziToast-buttons > button:hover {
        background-color: #60d865;
    }


/* ==== Geral ======= */
[disabled] {
    pointer-events: none;
}

input[readonly],
input[disabled] {
    background-color: #f5f5f5;
    cursor: default;
}

input[readonly]:hover,
input[disabled]:hover,
input[readonly]:active,
input[disabled]:active,
input[readonly]:focus,
input[disabled]:focus {
    outline: none;
}

/* Helpers - Size */
.max-h-100pc {
    max-height: 100%;
}

/* Helpers - Cor */ 
.x-color-primary {
    color: coral;
}

/* Helpers - Link */
.link-no-color,
.link-no-color:hover {
    text-decoration: none;
    color: currentColor;
}

/* Helpers - font size */
.fz-1 {
    font-size: 1.4em;
}

.fz-2 {
    font-size: 1.2em;
}

.fz-3 {
    font-size: 1em;
}

.fz-4 {
    font-size: .8em;
}