/*
Theme Name: Quinta da Bica
Theme URI: https://restaurantequintadabica.pt/
Author: Saraiva Design
Description: Tema WordPress moderno para a Quinta da Bica, com páginas para a quinta, eventos, galeria e contactos.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: quinta-da-bica
*/

:root {
  --qdb-bg: #fbfaf7;
  --qdb-text: #171713;
  --qdb-muted: #615b4e;
  --qdb-brown: #4b1207;
  --qdb-brown-hover: #6a1b0c;
  --qdb-gold: #9b7a34;
  --qdb-line: #e7dfd2;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--qdb-bg);
  color: var(--qdb-text);
  font-family: Manrope, Arial, Helvetica, sans-serif;
}

.font-serif,
.qdb-serif {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

::selection {
  background: #d7b56d;
  color: var(--qdb-text);
}

.qdb-prose p {
  margin-bottom: 1rem;
  color: var(--qdb-muted);
  line-height: 1.8;
}

.qdb-prose a {
  color: var(--qdb-brown);
  text-decoration: underline;
  text-decoration-color: #cdb46f;
  text-underline-offset: 4px;
}

.qdb-ticket-box form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.qdb-ticket-box .quantity input {
  min-height: 3.25rem;
  width: 5.75rem;
  border: 1px solid var(--qdb-line);
  background: #fff;
  padding: 0 0.9rem;
  color: var(--qdb-text);
  font-weight: 700;
}

.qdb-ticket-box .single_add_to_cart_button,
.qdb-ticket-box .button {
  min-height: 3.25rem;
  border: 0;
  background: var(--qdb-brown);
  padding: 0 1.5rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 180ms ease;
}

.qdb-ticket-box .single_add_to_cart_button:hover,
.qdb-ticket-box .button:hover {
  background: var(--qdb-brown-hover);
}

.qdb-store .woocommerce,
.woocommerce-content {
  color: var(--qdb-text);
  font-family: Manrope, Arial, Helvetica, sans-serif;
}

.qdb-store .woocommerce a.button,
.qdb-store .woocommerce button.button,
.qdb-store .woocommerce input.button,
.qdb-store .woocommerce #respond input#submit {
  border-radius: 0;
  background: var(--qdb-brown);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.qdb-store .woocommerce a.button:hover,
.qdb-store .woocommerce button.button:hover,
.qdb-store .woocommerce input.button:hover,
.qdb-store .woocommerce #respond input#submit:hover {
  background: var(--qdb-brown-hover);
  color: #fff;
}

.qdb-store .woocommerce table.shop_table,
.qdb-store .woocommerce form.checkout,
.qdb-store .woocommerce form.login,
.qdb-store .woocommerce form.register,
.qdb-store .woocommerce .woocommerce-MyAccount-navigation,
.qdb-store .woocommerce .woocommerce-MyAccount-content {
  border-color: var(--qdb-line);
  border-radius: 0;
}

.qdb-store__intro {
  border-bottom: 1px solid var(--qdb-line);
  padding-bottom: 2.5rem;
}

.qdb-store__content {
  min-width: 0;
}

.qdb-store--carrinho .qdb-store__body,
.qdb-store--finalizar-compra .qdb-store__body {
  grid-template-columns: minmax(0, 1fr);
}

.qdb-store--carrinho .qdb-store__visual,
.qdb-store--finalizar-compra .qdb-store__visual {
  display: none;
}

.qdb-store--carrinho .qdb-store__content,
.qdb-store--finalizar-compra .qdb-store__content {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.qdb-store--carrinho .woocommerce,
.qdb-store--finalizar-compra .woocommerce {
  display: grid;
  gap: 2rem;
}

.qdb-store--carrinho .woocommerce .cart-collaterals,
.qdb-store--finalizar-compra .woocommerce form.checkout {
  margin-top: 0;
}

.qdb-store--carrinho .woocommerce-cart-form,
.qdb-store--carrinho .cart-collaterals,
.qdb-store--finalizar-compra form.checkout,
.qdb-store--finalizar-compra #order_review {
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 0 0 1px var(--qdb-line);
}

.qdb-store--carrinho .woocommerce-cart-form {
  overflow-x: auto;
}

.qdb-store--carrinho .cart-collaterals {
  align-self: start;
}

.qdb-store--carrinho .cart_totals {
  float: none;
  width: 100%;
}

.qdb-store--carrinho .cart_totals h2,
.qdb-store--finalizar-compra #order_review_heading {
  margin: 0 0 1rem;
  color: var(--qdb-text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
}

.qdb-store--carrinho .shop_table,
.qdb-store--finalizar-compra .shop_table {
  border: 1px solid var(--qdb-line) !important;
  border-collapse: collapse;
}

.qdb-store--carrinho .shop_table th,
.qdb-store--carrinho .shop_table td,
.qdb-store--finalizar-compra .shop_table th,
.qdb-store--finalizar-compra .shop_table td {
  border-color: var(--qdb-line);
  padding: 1rem 0.75rem;
  vertical-align: middle;
}

.qdb-store--carrinho .shop_table thead,
.qdb-store--finalizar-compra .shop_table thead {
  background: #f5f0e8;
}

.qdb-store--carrinho .shop_table thead th,
.qdb-store--finalizar-compra .shop_table thead th {
  color: var(--qdb-brown);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.qdb-store--carrinho .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: 1rem;
}

.qdb-store--carrinho .coupon input.input-text {
  min-width: 10rem;
  flex: 1 1 12rem;
}

.qdb-store--carrinho .actions .button,
.qdb-store--carrinho .coupon .button,
.qdb-store--carrinho .wc-proceed-to-checkout a.checkout-button,
.qdb-store--finalizar-compra #place_order {
  min-height: 3.15rem;
  border: 0;
  border-radius: 0;
  background: var(--qdb-brown);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.qdb-store--carrinho .wc-proceed-to-checkout a.checkout-button,
.qdb-store--finalizar-compra #place_order {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: center;
}

.qdb-store--carrinho .actions .button:hover,
.qdb-store--carrinho .coupon .button:hover,
.qdb-store--carrinho .wc-proceed-to-checkout a.checkout-button:hover,
.qdb-store--finalizar-compra #place_order:hover {
  background: var(--qdb-brown-hover);
  color: #fff;
}

.qdb-store--finalizar-compra .woocommerce-checkout {
  display: grid;
  gap: 2rem;
}

.qdb-store--finalizar-compra form.checkout,
.qdb-store--finalizar-compra form.checkout .col2-set,
.qdb-store--finalizar-compra form.checkout .col-1,
.qdb-store--finalizar-compra form.checkout .col-2,
.qdb-store--finalizar-compra form.checkout #order_review {
  float: none;
  width: 100%;
  max-width: none;
}

.qdb-store--finalizar-compra form.checkout {
  display: grid;
  gap: 2rem;
}

.qdb-store--finalizar-compra form.checkout .col2-set {
  margin: 0;
}

.qdb-store--finalizar-compra form.checkout .col-1,
.qdb-store--finalizar-compra form.checkout .col-2 {
  padding: 0;
}

.qdb-store--finalizar-compra .woocommerce-checkout h3 {
  margin: 0 0 1rem;
  color: var(--qdb-text);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
}

.qdb-store--finalizar-compra .woocommerce-billing-fields,
.qdb-store--finalizar-compra .woocommerce-additional-fields {
  margin-bottom: 2rem;
}

.qdb-store--finalizar-compra .form-row {
  margin-bottom: 1rem;
}

.qdb-store--finalizar-compra label {
  margin-bottom: 0.4rem;
  color: var(--qdb-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qdb-store--finalizar-compra .woocommerce-checkout-review-order-table {
  margin-bottom: 1.5rem;
}

.qdb-store--finalizar-compra #payment {
  margin-top: 1.5rem;
  border-radius: 0;
  border: 1px solid var(--qdb-line);
  background: #f8f4ee;
}

.qdb-store--finalizar-compra #payment ul.payment_methods {
  padding: 0;
  border-bottom-color: var(--qdb-line);
}

.qdb-store--finalizar-compra #payment ul.payment_methods li {
  margin: 0;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--qdb-line);
}

.qdb-store--finalizar-compra #payment ul.payment_methods li:last-child {
  border-bottom: 0;
}

.qdb-store--finalizar-compra #payment div.payment_box {
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  background: #fff;
  color: var(--qdb-muted);
}

.qdb-store--finalizar-compra #payment div.payment_box::before {
  display: none;
}

.qdb-store--finalizar-compra #payment .place-order {
  margin: 0;
  padding: 1rem;
  background: #fff;
}

@media (min-width: 900px) {
  .qdb-store--carrinho .woocommerce {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    align-items: start;
  }

  .qdb-store--carrinho .woocommerce .cart-collaterals {
    grid-column: 2;
    grid-row: 1;
  }

  .qdb-store--carrinho .woocommerce-cart-form {
    grid-column: 1;
    grid-row: 1;
  }

  .qdb-store--finalizar-compra form.checkout {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: start;
  }

  .qdb-store--finalizar-compra form.checkout > .woocommerce-NoticeGroup-checkout,
  .qdb-store--finalizar-compra form.checkout > .woocommerce-checkout-review-order {
    grid-column: 2;
  }

  .qdb-store--finalizar-compra form.checkout > .col2-set {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .qdb-store--finalizar-compra form.checkout > .woocommerce-checkout-review-order {
    grid-row: 1 / span 2;
  }
}

@media (max-width: 899px) {
  .qdb-store--carrinho .woocommerce-cart-form,
  .qdb-store--carrinho .cart-collaterals,
  .qdb-store--finalizar-compra form.checkout,
  .qdb-store--finalizar-compra #order_review {
    padding: 0.85rem;
  }

  .qdb-store--carrinho .shop_table th,
  .qdb-store--carrinho .shop_table td,
  .qdb-store--finalizar-compra .shop_table th,
  .qdb-store--finalizar-compra .shop_table td {
    padding: 0.75rem 0.5rem;
  }
}

.qdb-store .woocommerce input.input-text,
.qdb-store .woocommerce textarea,
.qdb-store .woocommerce select {
  min-height: 3rem;
  border: 1px solid var(--qdb-line);
  border-radius: 0;
  padding: 0.75rem 0.9rem;
}

.qdb-store .woocommerce-message,
.qdb-store .woocommerce-info,
.qdb-store .woocommerce-error {
  border-top-color: var(--qdb-gold);
  background: #fbfaf7;
  color: var(--qdb-text);
}

.qdb-store .woocommerce ul.products li.product,
.qdb-store .woocommerce-page ul.products li.product {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--qdb-line);
}

.qdb-store .woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 1.25rem 1.25rem 0;
  color: var(--qdb-text);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1.05;
}

.qdb-store .woocommerce ul.products li.product .price {
  display: block;
  padding: 0.5rem 1.25rem 0;
  color: var(--qdb-brown);
  font-weight: 800;
}

.qdb-store .woocommerce ul.products li.product .button {
  margin: 1.25rem;
}

.qdb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(23, 17, 13, 0.92);
  padding: 1.25rem;
}

.qdb-lightbox.is-open {
  display: flex;
}

.qdb-lightbox__image {
  max-height: 86vh;
  max-width: 92vw;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.qdb-lightbox__button {
  position: absolute;
  display: inline-flex;
  min-height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(75, 18, 7, 0.78);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.qdb-lightbox__button:hover {
  background: rgba(106, 27, 12, 0.92);
}

.qdb-lightbox__close {
  right: 1.25rem;
  top: 1.25rem;
}

.qdb-lightbox__prev {
  left: 1.25rem;
}

.qdb-lightbox__next {
  right: 1.25rem;
}

.admin-bar .qdb-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .qdb-header {
    top: 46px;
  }
}
