/*!
Theme Name: Dinamic Simple
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Dinamic Simple
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: Dinamic Simple
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   BASE
   ========================================================= */

* {
    font-family: "Playfair Display" !important;
    box-sizing: border-box;
}

body {
    background: #fff;
    margin: 0 !important;
    padding: 0;
    float: left;
    width: 100%;
    overflow-x: hidden;
}

a {
    color: #fff;
}

ul {
    padding: 0;
    margin: 0;
}

@page {
    size: auto;
    margin: 0mm;
}

@keyframes entrada {
    0%   { opacity: 0; margin-top: -50px; }
    100% { opacity: 1; margin-top: 0; }
}


/* =========================================================
   TÍTULOS
   ========================================================= */

h3 {
    float: left;
    width: 100%;
    margin: 20px 0 10px;
    padding: 10px;
    font-size: 28px;
    text-align: center;
    color: #fff;
    background: #3b60aa;
    border: 4px solid #3b60aa;
}

h3:first-child {
    margin-top: 0;
}

h6 {
    margin: 0 0 20px;
    font-family: DM Sans;
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 -2px 1px #533513;
}


/* =========================================================
   LOGÓTIPOS
   ========================================================= */

.logo {
    display: flex;
    justify-content: center;
}

.logo h6 {
    margin-top: 70px;
}

.logo img {
    width: 66%;
    max-width: 400px;
    margin-bottom: 10px;
    opacity: 0;
    animation: entrada 1s ease 1s forwards;
}

/* Logótipo que só aparece ao imprimir */
.logoPrint {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
}

.logoPrint img {
    width: 100%;
    height: auto;
}


/* =========================================================
   CABEÇALHO DAS CATEGORIAS
   ========================================================= */

.fundo {
    position: relative;
    float: left;
    width: 100%;
    height: 240px;
    margin-bottom: 10px;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fundo:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
}

.fundo h1 {
    width: 100%;
    margin: 0;
    padding: 0;
    z-index: 9;
    font-size: 3em;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
    color: #fff;
}

.fundo span.tp,
.fundo span.bt {
    position: absolute;
    height: 5px;
    z-index: 123;
    background-size: cover;
    background-color: #2e2e2e;
}

.fundo span.tp { top: 0; }
.fundo span.bt { bottom: 0; }

.desc {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    font-family: DM Sans !important;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}


/* =========================================================
   MENU
   ========================================================= */

.abrirMenu {
    position: fixed;
    top: -100vh;
    z-index: 999;
    width: 100%;
    height: calc(100vh + 50px);
    padding-top: 6vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    border: none;
    background-color: #fff;
    background-blend-mode: multiply;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: all ease-in-out 1s;
}

.abrirMenu.open {
    top: 0;
}

.abrirMenu ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 320px;
    list-style: none;
    text-align: center;
    opacity: 0;
    animation: entrada 1.5s ease 0.75s forwards;
}

.abrirMenu ul li {
    position: relative;
    float: left;
    width: 48%;
    margin: 1% 1% 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.abrirMenu ul li a {
    float: left;
    width: 100%;
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2vh 0 1.1vh;
    font-family: 'Benne' !important;
    font-size: 14px;
    font-weight: 200;
    text-decoration: none;
    text-transform: uppercase;
    background: #3b60aa;
    box-shadow: 0 2px 5px rgb(0 0 0 / 10%);
    transform: scale(1);
    transition: all ease .3s;
}

.abrirMenu ul li a:hover {
    color: #fff !important;
    background-color: #3b60aa;
    box-shadow: 0 10px 5px -6px rgba(0, 0, 0, .3);
}

button.closeMenu {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 9999999;
    width: 35px;
    height: 35px;
    padding: 0 !important;
    font-family: DM Sans;
    font-size: 28px;
    font-weight: 900;
    color: #3b60aa;
    border: none;
    background: transparent;
    cursor: pointer;
}

button.cl {
    position: absolute;
    bottom: 6px;
    width: 100%;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #3b60aa;
    border: none;
    background: transparent;
}

.menu-menu-1-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

#menu-item.vinos a {
    background: #ff993f !important;
}


/* =========================================================
   LISTA DE PRODUTOS
   ========================================================= */

.wrapper ul {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.card {
    position: relative;
    float: left;
    width: 100%;
    margin: 0 0 5px;
    padding: 6px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
}

.card:last-child {
    margin-bottom: 20px;
    border-bottom: 0 solid;
}

.card img {
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    object-fit: cover;
}

.card > img {
    height: 200px;
}

/* Produto esgotado */
.card.agotado:before {
    content: "Producto Agotado";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 1px rgba(0, 0, 0, .4);
    background: #dfdfdf;
}

/* Nome do produto */
.title {
    position: relative;
    width: calc(100% - 110px) !important;
    padding-left: 10px;
    display: flex;
    align-items: center;
    font-family: 'Benne' !important;
    font-size: 16px;
    font-weight: 300;
    text-transform: capitalize;
    color: #2e2e2e;
    cursor: pointer;
}

.title > span {
    width: calc(100% - 10px);
    font-family: 'Benne' !important;
    line-height: 22px;
}

/* Ícone + / - */
.title:before {
    content: "+";
    width: 20px;
    height: 20px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: DM Sans, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    background-color: #3b60aa;
    border-radius: 50%;
}

.title.active:before {
    content: "-";
    color: #3b60aa;
    background: #fff;
}

/* Vinhos e bebidas não abrem detalhe */
.vinos .title:before,
.bebidas .title:before,
.vinos .title.active:before,
.bebidas .title.active:before {
    content: "";
    display: none;
}

.vinos .more,
.bebidas .more {
    display: none !important;
}

/* Preço */
.precio {
    float: left;
    width: 110px;
    margin-right: 0;
    padding: 10px 5px;
    font-family: DM Sans !important;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .5px;
    text-align: right;
    color: #333;
}

/* Detalhe expansível */
.more {
    position: relative;
    display: none;
    width: 100%;
    padding: 15px;
    background-color: #fff;
    border-radius: 0;
}

.more.active {
    display: block;
}

.description {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 22px;
    text-transform: lowercase;
    color: #333;
}

/* Alergénios */
.extra {
    float: left;
    width: 100%;
}

.alergenos {
    float: left;
    width: auto;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
}

.wrapper ul.alergenos {
    flex-direction: row;
}

.alergenos li {
    width: 35px;
    height: 35px;
    margin: 0 2px;
    border-radius: 50%;
}


/* =========================================================
   MINIATURA E PARTILHA
   (tem de ficar depois de .card img)
   ========================================================= */

img.thumbnail {
    width: 300px;
    max-height: 200px;
    margin-top: 10px;
}

.fac {
    position: absolute;
    right: 15px;
    bottom: 10px;
}

.wha {
    position: absolute;
    right: 60px;
    bottom: 10px;
}

img.facebook {
    width: 29px !important;
}

img.whatsapp {
    width: 30px;
    margin-left: 9px;
}


/* =========================================================
   RODAPÉ
   ========================================================= */

footer {
    float: left;
    width: 100%;
    margin-top: 40px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: #3b60aa;
}

footer img {
    width: 280px;
    margin-bottom: 0;
}

footer img.facebook {
    width: 35px !important;
}

.direccion {
    margin-bottom: 10px;
    font-size: 20px;
}

.direccion a {
    float: left;
    margin: 10px 0;
    font-family: 'Benne' !important;
    color: #fff !important;
    text-decoration: none;
}

.telefono {
    font-size: 20px;
    font-weight: 900;
}

.telefono a {
    font-family: DM Sans !important;
    font-size: 21px;
    font-weight: 100;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
}

.siguenos {
    position: relative;
    margin-top: 20px;
}

.siguenos p {
    margin: 0;
}

.siguenos a {
    margin: 5px;
}

.siguenos .instagram {
    width: 35px;
}

/* Botão flutuante de chamada */
.llamar {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #3b60aa;
    border: 0 solid #fff;
    border-radius: 0;
    box-shadow: 0 4px 8px -1px rgb(0 0 0 / 20%);
    transition: all ease .3s;
}

.llamar:hover {
    transform: scale(1.2);
}

.llamar img {
    width: 100%;
    max-width: 30px;
}

/* Barra final "Powered by" */
.last {
    position: relative;
    float: left;
    width: 100%;
    padding: 20px;
    font-size: 10px;
    font-weight: 100;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    background: #ff993f;
}

.last > a {
    font-weight: 900;
    color: #fff;
    text-decoration: none;
}


/* =========================================================
   SELETOR DE IDIOMAS (TranslatePress)
   ========================================================= */

.bandeiras {
    position: fixed;
    top: 2px;
    left: 0;
    z-index: 999;
    width: 100%;
    max-width: 110px;
    margin: 0 0 15px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.bandeiras > div img {
    max-width: 110px;
    height: 30px;
    margin: 10px;
}

#trp-floater-ls.trp-top-right {
    top: 0;
    bottom: auto;
    left: 10%;
    width: 120px;
    display: flex;
    flex-direction: row;
    border-radius: 0 0 5px 5px;
}

#trp-floater-ls.trp-floater-ls-flags:hover {
    width: 120px !important;
}

#trp-floater-ls #trp-floater-ls-current-language {
    display: none !important;
}

#trp-floater-ls #trp-floater-ls-language-list {
    display: flex !important;
}

.only-flags #trp-floater-ls-language-list {
    overflow: hidden !important;
}

#trp-floater-ls div:not(#trp-floater-poweredby) > a {
    min-width: 45px;
}

.trp-floater-ls-disabled-language {
    margin-top: 0 !important;
}

.trp-language-wrap {
    display: flex;
}

.trp-flag-image {
    width: 25px;
    height: 15px;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 460px) {
    .fundo h1 {
        font-size: 2em !important;
    }

    img.thumbnail {
        width: 200px !important;
    }
}

@media (min-width: 480px) {
    .abrirMenu ul {
        max-width: 80%;
    }
}

@media (min-width: 680px) {
    .fundo h1 {
        width: 100%;
        font-size: 4.8em;
    }

    .title {
        font-size: 16px;
    }

    .precio {
        width: 110px;
        font-size: 18px;
    }

    .abrirMenu {
        padding-top: 0;
        justify-content: center;
    }

    .abrirMenu ul li {
        width: 48% !important;
        margin: 1% !important;
    }

    .abrirMenu ul li a {
        font-size: 20px;
    }

    button.closeMenu {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 40px;
    }
}

@media (min-width: 1024px) {
    .wrapper {
        width: 100%;
        max-width: 1024px;
        margin: 0 auto;
        padding: 40px 15px;
        overflow: hidden;
    }
}


/* =========================================================
   IMPRESSÃO
   ========================================================= */

@media print {
    .abrirMenu,
    footer,
    .last,
    .llamar,
    .title:before,
    .wrapperCategoria.bebidas,
    div#trp-floater-ls {
        display: none !important;
    }

    .logoPrint {
        display: flex !important;
    }

    .fundo {
        height: 130px !important;
        background-image: unset !important;
    }

    .fundo h1 {
        font-size: 2.8em !important;
        color: #000 !important;
    }

    .precio {
        padding: 0 5px !important;
    }

    h3 {
        padding: 3px !important;
    }

    .wrapperCategoria,
    .wrapperSubCategoria {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .wrapper + .wrapper {
        margin-top: 20px;
    }
}
