/*
Theme Name: Cardápio Digital
Description: Theme created by Leandro Berg (fullstack development - http://virtuemasters.com.br).
Version: 1.11
Author: VIRTUEMASTERS
Author URI: http://virtuemasters.com.br
*/

/* GENERAL */

:root {
    --default: #E50914;
    --hover: #95060D;
    --lines: #C4C4C4;
    --gray: #777777;
    --gray2: #D9D9D9;
    --green: #0B8209;
    --orange: #FF9900;
}

body {
    font-family: Roboto;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 40px;
}

body.home {
    padding-top: 125px;
    padding-bottom: 52px;
}

section {
    overflow: hidden;
    position: relative;
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
}

iframe,
video,
audio {
    max-width: 100%;
}

.cover {
    background-position: center;
    background-size: cover;
}

.min-height-100vh {
    min-height: 100vh;
}

a.permalink {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 100;
}

strong {
    font-weight: 700;
}

p {
    padding-bottom: 15px;
}

span.dashicons {
    font-size: 2em;
    line-height: 1em;
    width: 32px;
    height: 32px;
}

.wp-block {
    max-width: 100%;
}

.checkbox-group div {
    margin-bottom: 5px !important;
}

.p10 {
    padding: 10px 0;
}

/* HEADING */

h1 {
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid var(--lines);
}

h2 {
    color: var(--gray);
    font-weight: 900;
    text-transform: uppercase;
    padding-bottom: 20px;
}

h3 {
    font-family: Raleway;
    font-size: 1.4em;
    line-height: 1.2em;
}

h4 {
    color: var(--gray);
    font-weight: 700;
}

/* BUTTON */

.wp-block-button {
    border-width: 1px;
}

.wp-block-button .wp-block-button__link {
    font: 16px/32px "Viga";
    border-radius: 0;
    padding: 0 15px;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    border-width: 1px;
}

/* COLORS */

.has-white-color {
    color: white !important;
}

.has-white-background-color {
    background-color: white;
}

.has-white-color {
    color: white !important;
}

.has-white-background-color {
    background-color: white;
}

.has-black-color {
    color: black !important;
}

.has-black-background-color {
    background-color: black;
}

/* LINKS */

a {
    color: var(--default);
    text-decoration: none;
    display: inline-block;
}

a:hover,
a:active,
a:focus {
    text-decoration: none;
    color: var(--hover);
}

.current-menu-item a,
.current-page-ancestor a {
    font-weight: 700;
    color: var(--hover);
}

/* FORM */

select {
    border: none;
    background: var(--gray2);
    padding: 5px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 1em;
    font-family: Roboto;
}

textarea {
    background: var(--gray2);
    border: none;
    border-radius: 5px;
    height: 80px;
    padding: 15px;
    font-size: 1em;
    font-family: Roboto;
}

input[type=text],
input[type=email],
input[type=date],
select {
    font-size: 1em;
    background: var(--gray2);
    border: none;
    border-radius: 5px;
    padding: 13px 5px;
    font-family: Roboto;
    width: calc(100% - 10px);
}

select {
    width: 100%;
    padding: 12px 5px;
}

input:invalid,
select:invalid,
textarea:invalid {
    border: 1px solid red;
}

/* HEADER */

header {
    position: fixed;
    width: 100%;
    background: white;
    top: 0;
    left: 0;
    z-index: 2;
}

header .button-orders {
    position: absolute;
    right: 8px;
    top: 15px;
}

header .button-orders .count {
    background: var(--default);
    border-radius: 100%;
    width: 15px;
    height: 15px;
    display: inline-block;
    text-align: center;
    font-size: 10px;
    line-height: 15px;
    position: absolute;
    left: -3px;
    bottom: 0;
    color: white;
}

header .orders {
    background: white;
    position: fixed;
    top: -200vh;
    left: 0;
    height: calc(100% - 150px);
    overflow: auto;
    width: calc(100% - 30px);
    padding: 15px 15px 70px;
    transition: all .3s;
}

header .orders.open {
    top: 65px;
}

header .orders h2 {
    text-align: center;
}

header .orders li {
    border-bottom: 1px solid var(--lines);
    padding-bottom: 8px;
    margin-bottom: 10px;
    align-items: center;
    line-height: 22px;
}

header .orders li:last-child {
    border: none;
}

header .orders .dashicons {
    font-size: 18px;
    width: auto;
    height: auto;
    vertical-align: -4px;
    margin-right: 5px;
}

header .orders .dashicons-yes-alt {
    color: var(--green);
}

header .orders .dashicons-clock {
    color: var(--orange);
}

header .orders .wait .dashicons {
    color: var(--orange);
}

header .orders .done .dashicons {
    color: var(--green);
}

header .orders .date {
    color: var(--gray);
}

header .orders .url {
    display: none;
    margin-bottom: -20px;
}

header .orders .url a {
    padding: 0 5px;
    border-radius: 3px;
    border: 1px solid;
}

header .orders .open .url {
    display: block;
}

header .orders .price {
    color: var(--default);
    font-weight: 700;
    float: right;
}

header .orders ul ul {
    margin: 15px 0;
    display: none;
}

header .orders ul ul li {
    padding-bottom: 5px;
    margin-bottom: 5px;
    color: var(--gray);
}

header .orders ul ul li:before {
    content: '-';
    margin-right: 5px;
}

header .orders ul ul li .quantity {
    float: right;
}

header .orders ul ul li:last-child {
    border: none;
}

header .orders .open {
    padding-bottom: 35px;
}

header .orders .open ul {
    display: block;
}

header .orders .total {
    bottom: 0;
    left: 0;
    background: var(--gray);
    color: white;
    padding: 15px;
    width: calc(100% - 30px);
    text-align: center;
    font-weight: 700;
}

header .orders.open .total {
    position: fixed;
}

header nav {
    padding: 10px 0;
    border-bottom: 1px solid var(--lines);
}

header nav ul {
    display: flex;
    gap: 15px;
    overflow: auto;
    padding: 0 15px;
}

header nav a {
    color: var(--gray);
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

header nav a:hover,
header nav a:active,
header nav a:focus {
    color: var(--default);
}

/* PRODUCT LISTING */

.products .product {
    display: grid;
    grid-template-columns: 100px auto;
    border-bottom: 1px solid var(--lines);
    padding-bottom: 25px;
    margin-bottom: 25px;
    column-gap: 20px;
    row-gap: 10px;
}

.products .product figure {
    min-width: 100px;
    grid-row: 1 / span 2;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.products .product figure:before {
    content: "\f187";
    font-family: Dashicons;
    font-size: 48px;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray);
    color: white;
}

.products .product figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.products .woocommerce-product-details__short-description {
    grid-column: 1 / span 2;
}

.products .product form {
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: 100px auto;
    column-gap: 20px;
    row-gap: 10px;
}

.products .product table {
    grid-column: 1 / span 2;
}

.products .product form.variations_form {
    margin-top: 5px;
}

.products .product form.variations_form tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.products .product form.variations_form tr {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.products .product form:not(.variations_form),
.products .product .single_variation_wrap {
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: 100px auto 45px;
    column-gap: 20px;
    border: 1px solid var(--lines);
    border-radius: 5px;
    padding: 10px 0;
    margin-top: 10px;
}

.products .product .single_variation_wrap .woocommerce-variation-add-to-cart {
    order: 1;
}

.products .product .single_variation_wrap .woocommerce-variation {
    order: 2;
    display: block !important;
}

.products .product .single_variation_wrap button {
    order: 3;
}

.products .product .quantity-wrapper {
    display: flex;
    padding: 0px 15px;
    border-right: 1px solid var(--lines);
}

.products .product .quantity-wrapper > span {
    font-size: 1.6em;
}

.products .product .qty {
    border: none;
    width: 100%;
    padding: 0;
    color: #000;
    font-size: 1em;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

.products .product p {
    padding: 0;
}

.products .product .price {
    color: var(--default);
    font-weight: 700;
}

.products .product button {
    border: none;
    background: black;
    color: white;
    margin: -11px -1px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* CHECKOUT */

.woocommerce-checkout {
    color: var(--gray);
}

.woocommerce-checkout h2 {
    text-align: center;
}

.checkout .shop_table {
    color: var(--gray);
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.checkout .shop_table .cart_item {
    border-bottom: 1px solid var(--lines);
}

.checkout .shop_table .cart_item td {
    padding: 5px 0;
    vertical-align: bottom;
}

.checkout .shop_table .cart_item td .item {
    display: block;
    font-weight: bold;
}

.checkout .shop_table .product-total,
.checkout .shop_table .order-total {
    text-align: right;
}

.checkout .shop_table .order-total .amount {
    margin-top: 20px;
    display: block;
    color: var(--default);
}

.checkout .notes textarea {
    display: block;
    width: calc(100% - 30px);
    margin-top: 5px;
}

.checkout .wc-credit-card-form input {
    display: block;
    margin-top: 5px;
}

.checkout .wc-payment-form:after {
    content: '* Necessário para processamento do PIX';
    display: block;
    font-size: .9em;
    margin-top: 10px;
}

.checkout .wc_payment_method {
    margin: 10px 0;
}

.checkout ul.wc_payment_methods:has(> li:only-child) {
    display: none;
}

.checkout .form-row {
    padding: 0;
}

.checkout .form-row label {
    display: inline-block;
    margin-bottom: 5px;
}

.checkout .woocommerce-input-wrapper {
    display: block;
    margin-bottom: 30px;
}

.checkout [data-brand] {
    position: relative;
}

.checkout [data-brand]:after {
    content: '';
    position: absolute;
    right: 10px;
    top: calc(50% - 15px);
    width: 40px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.checkout [data-brand=mastercard]:after {
    background-image: url(images/logo-master.webp);
}

.checkout [data-brand=visa]:after {
    background-image: url(images/logo-visa.webp);
}

.checkout [data-brand=amex]:after {
    background-image: url(images/logo-amex.webp);
}

.checkout [data-brand=hipercard]:after {
    background-image: url(images/logo-hiper.webp);
}

.checkout button,
.woocommerce-order-received a.copyPix,
.order-completed .buttons a {
    border: none;
    text-align: center;
    background: var(--default);
    color: white;
    padding: 20px;
    border-radius: 5px;
    font-weight: 700;
    width: 100%;
    font-size: 1em;
}

.loading,
.checkout button[disabled] {
    opacity: .5;
    pointer-events: none;
}

.checkout .back,
.woocommerce-order-received .back {
    text-align: center;
    width: 100%;
    font-weight: 700;
    padding: 20px 0;
}

.checkout .place-order {
    padding-top: 40px;
    
}

.checkout .woocommerce-NoticeGroup {
    color: var(--default);
    text-align: center;
    margin-bottom: 20px;
}

/* ORDER RECEIVED */

.woocommerce-order-received {
    text-align: center;
}

.woocommerce-order-received img {
    width: 50%;
    max-width: 200px;
    margin: 40px auto;
    display: block;
}

.woocommerce-order-received .status {
    border: 1px dashed var(--lines);
    border-radius: 5px;
    padding: 5px 15px;
    display: inline-block;
    margin-top: 20px;
    transition: .3s;
    animation: blinking 1s linear infinite;
}

.woocommerce-order-received a.copyPix,
.order-completed .buttons a {
    width: calc(100% - 40px);
    margin-top: 40px;
    transition: .3s;
}

/* ORDER COMPLETED */

.order-completed > .dashicons {
    color: var(--green);
    font-size: 8em;
    width: auto;
    height: auto;
}

.order-completed h4 {
    margin-top: 40px;
}

.order-completed hr {
    margin-bottom: 40px;
    margin-top: 20px;
    opacity: .5;
}

.order-completed .status {
    color: var(--orange);
    margin-bottom: 20px;
    border-color: var(--orange);
}

.order-completed .status .dashicons {
    color: var(--orange);
    font-size: 18px;
    width: auto;
    height: auto;
    vertical-align: -4px;
    margin-right: 5px;
}

.order-completed p strong {
    display: block;
    font-size: 3em;
    line-height: 1em;
}

/* FOOTER */

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
}

footer .buttons {
    background: var(--default);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

footer .buttons * {
    color: white;
}

footer .buttons .amount {
    font-weight: 700;
}

footer .buttons .button-cart {
    padding: 10px 15px;
    position: relative;
}

footer .buttons .button-cart .count {
    background: black;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    display: inline-block;
    text-align: center;
    font-size: 10px;
    line-height: 20px;
    position: absolute;
    right: 5px;
    top: 5px;
}

footer .buttons .button-checkout a {
    background: var(--hover);
    padding: 10px 15px;
}

footer .woocommerce-mini-cart {
    background: white;
    position: fixed;
    bottom: -100vh;
    left: 0;
    height: calc(100% - 162px);
    overflow: auto;
    width: 100%;
    padding: 15px;
    transition: all .3s;
}

footer .woocommerce-mini-cart.active {
    bottom: 52px;
}

footer .woocommerce-mini-cart li {
    border-bottom: 1px solid var(--lines);
    padding: 10px 0;
    display: grid;
    grid-template-columns: 15px auto 100px;
    column-gap: 5px;
}

footer .woocommerce-mini-cart .description,
footer .woocommerce-mini-cart .variation {
    display: block;
    color: var(--gray);
    grid-row: 2;
    grid-column: 2;
}

footer .woocommerce-mini-cart .variation dt,
.checkout .shop_table .variation dt {
    float: left;
    margin-right: 5px;
}

footer .woocommerce-mini-cart .variation dd p,
.checkout .shop_table .variation dd p {
    padding: 0;
}

footer .woocommerce-mini-cart .quantity {
    float: right;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 5px;
}

footer .woocommerce-mini-cart .quantity.down {
    grid-row: 2;
    grid-column: 3;
}

footer .woocommerce-mini-cart .amount {
    font-weight: 700;
    color: var(--default);
}

footer .woocommerce-mini-cart .remove {
    font-size: 1.6em;
    vertical-align: bottom;
    margin-right: 5px;
}

.store-closed-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--default);
    color: #fff;
    text-align: center;
    padding: 15px;
    z-index: 9999;
}