@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #333333;
  list-style: none;
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

.hidden {
  display: none !important;
}

html {
  background-color: rgba(0, 0, 0, 0.05);
  -ms-overflow-style: none; /* Internet Explorer and Edge */
  scrollbar-width: none; /* Firefox */
}

::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

body {
  background-color: white;
  max-width: 1024px;
  margin: auto;
}

header {
  background-color: white;
  position: sticky;
  top: 0;
}

header nav {
  height: 55px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  position: sticky;
  top: 0;
}

#logo {
  margin-left: 15px;
  height: 40px;
  cursor: pointer;
}

#searchTop {
  width: 35%;
  padding: 5px;
  border-radius: 10px;
  background-color: white;
  font-size: 13px;
  border: solid 1px rgba(0, 0, 0, 0.1);
}

#menuButton {
  width: 20px;
  margin-right: 15px;
  cursor: pointer;
}

#menuList {
  display: none;
  text-align: end;
  border-radius: 0 0 10px 10px;
  margin-right: 15px;
}

#menuList.active {
  display: flex;
  flex-direction: column;
  align-items: end;
}

#menuList li {
  line-height: 2;
  cursor: pointer;
}

#menuList a {
  cursor: pointer;
}

.location {
  margin-top: 22.5px;
  margin-left: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.location img {
  height: 7.5px;
}

.location select {
  border: none;
  appearance: none;
  background-color: transparent;
  font-size: 1em;
  font-weight: bold;
  outline: transparent;
  cursor: pointer;
}

.banner0 {
  display: flex;
  align-items: center;
  overflow: scroll;
  margin-left: 15px;
  margin-top: 30px;
  gap: 15px;
}

.banner0 a {
  display: flex;
  align-items: center;
}

.banner0 img {
  border-radius: 10px;
  width: 250px;
  aspect-ratio: calc(16 / 9);
  object-fit: cover;
}

.banner {
  display: flex;
  align-items: center;
  overflow: scroll;
  margin-left: 15px;
  margin-top: 30px;
  gap: 15px;
}

.banner a {
  display: flex;
  align-items: center;
}

.banner img {
  border-radius: 10px;
  width: 250px;
  aspect-ratio: calc(16 / 9);
  object-fit: cover;
}

.category {
  margin-top: 30px;
  display: flex;
  text-align: center;
  font-size: 45px;
  overflow: scroll;
  gap: 30px;
  margin-left: 15px;
  margin-right: 15px;
}

.category p {
  font-size: small;
  text-align: center;
}

.category article {
  cursor: pointer;
}

#buttonComida.active p {
  border-bottom: #FF7500 solid 2px;
  font-weight: bold;
}

#buttonBebida.active p {
  border-bottom: #FF7500 solid 2px;
  font-weight: bold;
}

#buttonSobremesa.active p {
  border-bottom: #FF7500 solid 2px;
  font-weight: bold;
}

#buttonPadaria.active p {
  border-bottom: #FF7500 solid 2px;
  font-weight: bold;
}

#buttonMercearia.active p {
  border-bottom: #FF7500 solid 2px;
  font-weight: bold;
}

#buttonAcougue.active p {
  border-bottom: #FF7500 solid 2px;
  font-weight: bold;
}

#buttonFarmacia.active p {
  border-bottom: #FF7500 solid 2px;
  font-weight: bold;
}

#buttonPetShop.active p {
  border-bottom: #FF7500 solid 2px;
  font-weight: bold;
}

#productListTitle {
  display: block;
  margin-left: 15px;
  margin-top: 30px;
  margin-bottom: 5px;
  font-size: 1em;
  font-weight: bold;
}

#productListComida {
  display: flex;
}

#productListBebida {
  display: none;
}

#productListSobremesa {
  display: none;
}

#productListPadaria {
  display: none;
}

#productListMercearia {
  display: none;
}

#productListAcougue {
  display: none;
}

#productListFarmacia {
  display: none;
}

#productListPetShop {
  display: none;
}

.productList {
  display: flex;
  gap: 15px;
  overflow: scroll;
  margin-left: 15px;
}

.productList article {
  border: solid 1px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

#productListImg {
  width: 200px;
  aspect-ratio: calc(5 / 4);
  object-fit: cover;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

#productListStoreName {
  font-size: small;
  line-height: 1.5;
  margin-left: 5px;
}

#productListName {
  font-size: small;
  line-height: 1.5;
  margin-left: 5px;
  font-weight: bold;
}

#productListPrice {
  font-size: small;
  line-height: 1.5;
  margin-left: 5px;
  color: #FF7500;
  font-weight: bold;
  margin-bottom: 5px;
}

#storeListTitle {
  display: block;
  margin-left: 15px;
  margin-top: 30px;
  margin-bottom: 5px;
  font-size: 1em;
  font-weight: bold;
}

.closeStore > a {
  pointer-events: none;
}

.storeList {
  display: none;
}

#openStoreListComida,
#closedStoreListComida {
  display: block;
}

#closedStoreListComida,
#closedStoreListComida > a {
  pointer-events: none;
}

.storeList article {
  margin-right: 15px;
  margin-left: 15px;
  height: 100px;
  display: flex;
  align-items: center;
  font-size: small;
  line-height: 1.5;
  border: 0.5px solid rgb(238, 238, 238);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 4px;
  border-radius: 10px;
  margin-bottom: 15px;
}

#storeListImg {
  padding: 5px;
  height: 100px;
  width: 100px;
  object-fit: cover;
  border-radius: 20px;
  padding: 10px;
}

#storeListName {
  font-weight: bold;
}

.openStoresList {
  font-weight: 500;
  color: green;
}

.closedStoresList {
  font-weight: 500;
  color: red;
}

footer {
  padding: 15px;
  font-size: 0.75em;
  text-align: center;
}

dialog {
  width: 80%;
  margin: auto;
  border-radius: 10px;
  border: none;
  line-height: 1.5;
  text-align: justify;
}

dialog::backdrop {
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

body:has(dialog[open]) {
  overflow: hidden;
  pointer-events: none;
}

dialog[open] {
  pointer-events: auto;
}

.dialogHeader {
  background-color: white;
  height: 45px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: solid 1px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
}

.dialogHeader h3 {
  font-weight: 500;
}

#modalQuemSomos p {
  margin: 15px;
}

#buttonCloseQuemSomos {
  width: 15px;
  cursor: pointer;
}

#phone-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#phone-container p {
  margin-top: 15px;
  margin-bottom: -10px;
}

#modalMyOrders input {
  font-size: 1em;
  font-weight: 500;
  width: auto;
  padding: 5px;
  border-radius: 10px;
  background-color: white;
  border: 0.5px solid rgb(238, 238, 238);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 4px;
  text-indent: 5px;
}

#modalMyOrders button {
  font-size: 1em;
  width: auto;
  background: #FF7500;
  color: white;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.1s;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: 500;
  margin-bottom: 15px;
}

#btnCloseModalMyOrders {
  width: 15px;
  cursor: pointer;
}

#orders article {
  padding: 15px;
  line-height: 1.75;
  border-bottom: solid 1px rgba(0, 0, 0, 0.1);
}

#orders h4 {
  font-weight: 500;
  text-align: center;
  margin-bottom: 15px;
}

#orders article div {
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
}
#orders .id_order * {
  font-weight: 500;
}

#orders .received,
#orders .received * {
  color: orange;
  font-weight: 500;
}
#orders .pending,
#orders .pending * {
  color: dodgerblue;
  font-weight: 500;
}
#orders .finalized,
#orders .finalized * {
  color: green;
  font-weight: 500;
}
#orders .delivery,
#orders .delivery * {
  color: green;
  font-weight: 500;
}

.icon-loading {
  animation: spin 2s linear infinite;
}
@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media (min-width: 600px) {
  dialog {
    max-width: 750px;
  }
}
