@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --font-color: #ae4b7b;
  --purple: #7e2a52;
  --light-purple: #fcccce;
  --black: #2f2d2e;
  --grey: #b3b2b7;
  --bg-color: #fffbf5;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--font-color);

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

ul {
  list-style: none;
}

a:link,
a:visited {
  text-decoration: none;
  color: inherit;

  transition: all 200ms ease-in;
}

a:hover,
a:active {
  color: var(--purple);
}

main {
  width: 80%;
  margin: 0 auto;
}

h2 {
  border-left: 8px solid var(--font-color);
  font-size: 1rem;
  font-weight: 500;

  padding-left: 10px !important;
}

.mr-bottom-20 {
  margin-bottom: 20px;
}

.box {
  background-color: var(--bg-color);
  width: 100%;
  border-radius: 5px;
  padding: 20px 40px;
  margin-top: 20px;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  background-color: var(--purple);
  border-radius: 5px;
  width: 100%;
  padding: 15px 0;
  border: none;
  outline: none;
  margin-top: 20px;

  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;

  transition: background-color 200ms ease-in;
}

.btn:hover {
  background-color: var(--font-color);
}

.arrow-down {
  fill: white;
  width: 10px;
  height: 10px;
  vertical-align: middle;
}

.confirm-icon {
  width: 25px;
  height: 25px;
}

.first-container,
.second-container,
.third-container {
  width: 60%;
}

.second-container,
.third-container {
  display: none;
  margin-top: 20px;
}

@media only screen and (max-width: 1100px) {
  .articles {
    position: initial;
    width: 100%;
  }

  .first-container,
  .second-container,
  .third-container {
    width: 100%;
    margin-top: 40px;
  }

  .box {
    padding: 10px 20px;
  }

  main {
    width: 90%;
  }
}

.voucher-apply h4{
  font-weight: 400;
  color: #4D4C4C;
  margin-bottom: 10px;
}

/* ################################## */
/* NAVBAR/MENU  */
/* ################################## */
nav {
  position: relative;
  width: 80%;
  margin: 0 auto;
  padding: 30px 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 50px;
}

.logo-c {
  width: 8rem;
}

nav img {
  height: 100%;
}

.menu-items {
  display: flex;
  justify-content: space-around;
  gap: 2rem;

  font-weight: 500;
  font-size: 1.1rem;
}

.toggle-menu,
.ham-menu {
  position: absolute;
  top: 16px;
  left: 3%;

  height: 3rem;
  width: 3rem;

  display: none;
}

@media only screen and (max-width: 1100px) {
  nav {
    width: 100%;
    padding: 40px;
    margin-bottom: 10px;
  }

  nav img {
    position: absolute;
    right: 5%;
    top: 10px;
    height: 70%;
    padding-top: 10px;
  }

  .menu-items {
    position: absolute;
    top: 0px;
    left: 0;
    height: 100vh;
    padding: 80px 10% 0 4%;
    background-color: white;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);

    display: none;
    opacity: 0;
    transition: all 100ms ease-in-out, opacity 200ms;
    z-index: 9;
  }

  .menu-items li {
    padding: 0.5rem 0;


  }

  .toggle-menu,
  .ham-menu {
    display: block;
  }

  .toggle-menu {
    opacity: 0;
    z-index: 11;
    cursor: pointer;
  }

  .ham-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 0.5rem;

    z-index: 10;
  }

  .ham-menu .line-ham {
    background-color: var(--purple);
    border-radius: 1em;
    width: 2rem;
    height: 0.25rem;

    transition: transform 100ms ease-in-out;
  }

  .ham-menu .line1 {
    transform-origin: 0 0%;
    transition: transform 100ms ease-in-out;
  }

  .ham-menu .line3 {
    transform-origin: 0% 100%;
    transition: transform 100ms ease-in-out;
  }

  .toggle-menu:checked~.ham-menu .line1 {
    display: block;
    transform: rotate(45deg);
  }

  .toggle-menu:checked~.ham-menu .line2 {
    opacity: 0;
  }

  .toggle-menu:checked~.ham-menu .line3 {
    display: block;
    transform: rotate(-45deg);
  }

  .toggle-menu:checked~.menu-items {
    display: block;
    opacity: 1;
    transform: translateX(0%);
  }

  .menu-items a {
    display: block;
    line-height: 3;

  }




}

/* ################################## */
/* inputs */
/* ################################## */
label {
  display: block;
  height: 80px;
  font-weight: 300;
  font-size: 0.8rem;
  padding-left: 5px;
  color: #2b2b2b;
}

.required {
  font-weight: 700;
  color: var(--purple);
}

@media only screen and (max-width: 500px) {
  .extra-label {
    display: none;
  }
}

.extra-label {
  margin-left: 5px;
  text-align: right;
  font-size: 0.7rem;
  color: rgb(153, 153, 153);
}

input {
  width: 100%;
  padding: 10px;
  border-radius: 3px;
  background-color: #fff !important;
  border: none !important;
  margin: 3px 0;
  outline: 1px solid var(--light-purple);
}

input::placeholder {
  color: rgb(141, 141, 141) !important;
  font-weight: 100;
}



input:focus {
  outline: 1px solid var(--purple);
}

.error {
  font-size: 0.75rem;
  color: rgb(214, 56, 56);
  text-align: right;
}

.input-error {
  outline: 1px solid rgb(223, 98, 98);
  animation: input-error-color 2s;
}

.input-success {
  outline-color: var(--font-color);
}

@keyframes input-error-color {
  0% {
    outline-color: rgba(0, 255, 255, 0);
  }

  25% {
    outline-color: rgb(223, 98, 98);
  }

  50% {
    outline-color: rgba(0, 255, 255, 0);
  }

  100% {
    outline-color: rgb(223, 98, 98);
  }
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* radio box */
.rad-label {
  display: flex;
  align-items: center;
  border: 1px solid var(--purple);

  cursor: pointer;
  padding: 14px 16px;
  border-radius: 5px;
  margin: 10px 0;
  transition: all 0.3s;
}

.rad-label:hover,
.rad-label:focus-within {
  background-color: #fdf4e7;
}

.rad-input {
  width: 1px;
  height: 1px;
  opacity: 0;
  z-index: 1;
}

.rad-design {
  width: 32px;
  height: 32px;
  border-radius: 100px;

  background: linear-gradient(to right bottom,
      var(--purple),
      var(--font-color));
  position: relative;
}

.rad-design::before {
  content: "";

  display: inline-block;
  width: inherit;
  height: inherit;
  border-radius: inherit;

  background: hsl(0, 0%, 91%);
  transform: scale(1.1);
  transition: all 0.3s;
}

.rad-input:checked+.rad-design::before {
  transform: scale(0);
}

.rad-text {
  margin-left: 14px;
  font-weight: 500;
  transition: 0.3s;
}



/* ################################## */
/* Artigos */
/* ################################## */

.articles {
  max-height: 60vh;
  overflow-y: auto;
  position: fixed;
  right: 10%;
  width: 30%;
}

.qt-label {
  color: rgb(75, 75, 75);
  font-size: 0.7rem;
}

.items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.single-item {
  display: flex;
  gap: 15px;
}

.single-item img {
  border-radius: 3px;
  width: auto;
  height: 80px;
}

.single-item-content {
  font-weight: 500;
  color: var(--black);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.single-item p:nth-child(1) {
  font-size: 0.9rem;
}

.single-item p:nth-child(2) {
  font-size: 0.7rem;
}

.single-item-content p:nth-child(3) {
  font-size: 0.9rem;

  margin-top: 4px;
  color: var(--font-color);
}

.articles-detail {
  display: none;
  margin-top: 40px;
  top: 9.5%;
}

#nif {
  display: none;
}

#nif input {
  margin-top: 20px;
}

.single-price {
  color: var(--black);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}
.items .single-item{
  margin-bottom:5px;
  margin-top:5px;
}





.single-price:last-child p:nth-child(2) {
  color: var(--font-color);
}

@media only screen and (max-width: 1100px) {
  .articles {
    max-height: none;
    overflow-y: none;
    position: initial;
    width: 100%;
  }

  .box-articles {
    background-color: #fff;
  }
}

/* ################################## */
/* SECTION 2 - Morada  */
/* ################################## */
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
}

.grid-form label:nth-child(4),
.grid-form label:nth-child(5),
.grid-form label:first-child {
  grid-column: 1 / -1;
}

.morada-checked {
  margin-top: 20px;
}

.select-country {
  width: 100%;
  padding: 10px 10px;
  margin-bottom: 10px;
  border: 1px solid var(--purple);
  border-radius: 3px;
  font-weight: 300;

  -moz-appearance: none;
  /* Firefox */
  -webkit-appearance: none;
  /* Safari and Chrome */
  appearance: none;
  background: #fff;
}

.select-country:active,
.select-country:focus {
  outline: none;
}

/* ################################## */
/* SECTION 3 - Método de pagamentos  */
/* ################################## */
.rad-image {
display:flex;
align-items: center;
justify-content: start;
margin-left:20px;
  max-width: 70px;

}

.rad-image img{
height:100%;
}

#mbway-numero {
  display: none;
}

.check-termos {
  display: flex;
  align-items: center;
  gap: 20px;

  color: var(--black);
  font-size: 1rem;

  cursor: pointer;
  margin-left: 10px;
}

.check-termos input {
  margin: 0;
  scale: 2;
  width: auto;
  outline: none;
}

#morada-faturacao-form {
  display: none;
}


/* -------------------------------- */
/* Historico page  */
/* --------------------------------- */

.yellow {
  color: #b7a71b;
}

.red {
  color: #aa1515;
}

.green {
  color: #3b8715;
}

.single-encomenda-box {
  font-weight: 300;
}

.single-encomenda-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--black);
}

.btn-detalhes {
  padding: 10px 20px;
  font-size: 0.8rem;
  border-radius: 3px;
  margin: 0;
  width: auto;
}

.more-button {
  cursor: pointer;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--purple);
  display: flex;
  justify-content: center;
  align-items: baseline;

  color: var(--purple);
}

.mais-arrow {
  fill: var(--purple);
  width: 12px;
  height: 12px;
}

.close-details {
  display: none;
}

.more details[open] .close-details {
  display: initial;
}

.more details[open] .open-details {
  display: none;
}

.more details[open] summary {
  transition: 0.3s;
  margin-bottom: 20px;
}

.single-detail {
  border: 1px solid var(--purple);
  border-radius: 5px;
  padding: 8px 15px;
  margin-bottom: 10px;
}

@media only screen and (max-width: 1030px) {
  .btn-detalhes {
    font-size: 0.8rem;
    padding: 7px 14px;
  }

  .single-encomenda-top {
    flex-wrap: wrap;
  }
}

@media only screen and (max-width: 490px) {
  .btn-detalhes {
    padding: 0 !important;
    background-color: transparent;
    color: var(--purple);
    font-size: 0.7rem;
    padding: 0 14px;
  }
}

@media only screen and (max-width: 390px) {
  .btn-detalhes {
    margin-top: 20px;
  }
}

/* -------------------------------- */
/* RGPD page  */
/* --------------------------------- */
.section-rgpd p {
  color: var(--black);
  margin: 15px 0 10px 0;
  font-weight: 300;
}

.section-rgpd a:link,
.section-rgpd a:visited {
  display: inline-block;
  color: var(--purple) !important;
  margin-top: 10px;
}

/* -------------------------------- */
/* DETALHES page  */
/* --------------------------------- */

.text-symbol {
  display: flex;
  gap: 30px;
}

.voltar {
  cursor: pointer;
}

.voltar-arrow {
  fill: var(--font-color);
  width: 15px;
}

.title-encomenda {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.section-detalhe article {
  margin: 30px 0;
}

.metodo-pagamento {
  padding: 15px 10px;
  border: 1px solid var(--purple);
  border-radius: 5px;
  display: flex;
  gap: 15px;
  align-items: center;
  color: var(--black);
}

.detalhes-morada {
  padding: 15px 10px;
  border: 1px solid var(--purple);
  border-radius: 5px;
  color: var(--black);
}

/* -------------------------------- */
/* TERMOS page  */
/* --------------------------------- */

.section-termos p {
  color: var(--black);
  margin: 15px 0 10px 0;
  font-weight: 300;
}

.section-termos h3 {
  color: var(--black);
  font-weight: 400;
  margin-bottom: -15px;
}

/* -------------------------------- */
/* ABOUT page  */
/* --------------------------------- */

.section-about img {
  width: 100%;
}

.section-about h1 {
  padding: 20px 0;
  text-align: center;
}

/* ################################## */
/* FOOTER */
/* ################################## */

footer {
  margin-top: auto;
  border-top: 1px solid var(--light-purple);
  color: #2b2b2b;
}

.social-media {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 25px;
}

#facebook {
  width: 40px;
}

#facebook .st0 {
  fill: #ae4b7b;
}

#facebook .st1 {
  fill: #ffff;
}

#facebook:hover .st0 {
  fill: var(--purple);
}

#instagram {
  width: 40px;
}

.rt0,
.rt2 {
  fill: #ae4b7b;
}

.rt1,
.rt3 {
  fill: #fff;
}

#instagram:hover .rt0,
#instagram:hover .rt2 {
  fill: var(--purple);
}

footer p {
  text-align: center;
  margin-bottom: 10px;
}

footer a:link,
footer a:visited {
  color: rgb(102, 14, 68);
}

.order-resume-info .single-price{margin-bottom:10px;}