/* hidden class */
.hidden {
  display: none !important;
}

/* main logo */
#main-logo {
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  width: 77.5%;
  margin-inline: auto;
  margin-bottom: 0.5rem;
}

@media (orientation: landscape) {
  #main-logo {
    width: 45%;
  }
}

/* main styles */

:root {
  --primary: #006149;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "Poppins", sans-serif !important;
}

body {
  background-color: #c894e4;
}

/* main page */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}
@media (orientation: landscape) {
  .categories-grid {
    width: 50%;
    margin-inline: auto;
  }
}

/* .categories-grid :nth-child(7) {
  grid-column: 2 / 3;
} */

/* category styles */
.category {
  display: grid;
  background-color: white;
  border: 1px solid var(--primary);
  border-radius: 7px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  align-content: center;
  justify-items: center;
  padding: 7px 0;
  gap: 0.2rem;
}
.category img {
  width: 3rem;
}
a {
  text-decoration: none;
}

/* product page styles */
.button-and-products {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 90%;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.button-and-products button {
  background-color: transparent;
  border: white 1px solid;
  border-radius: 100rem;
  color: white;
  padding: 0.4rem 1.1rem 0.3rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
}
.button-and-products button img {
  width: 0.5rem;
}
.products-flex {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* product styles */
.product-flex {
  display: flex;
  gap: 1rem;
  border: 1px solid gray;
  border-radius: 7px;
  background-color: white;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.5rem;
  min-height: 6rem;
}

.left-part {
  display: flex;
  flex-direction: column;
  max-width: 10rem;
}
.left-part p {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.left-part span {
  font-size: 0.7rem;
  color: gray;
}
.right-part {
  display: flex;
  align-items: center;
  padding-right: 0.5rem;
  gap: 0.3rem;
}
.right-part p {
  font-size: 0.9rem;
}
.img-and-price {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}
.img-and-price p {
  font-weight: 600;
}
img {
  width: 30px;
}
.img-and-price img {
  height: 5.3rem;
  width: 5.3rem;
  /* aspect-ratio: 4/3; */
  object-fit: contain;
  border-radius: 0.5rem;
}

/* .bigImg {
  width: 70px;
} */
.desert-info {
  color: white;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
  padding: 0 0.5rem;
  line-height: 1.4;
  margin: 0.5rem 0;
}

/* version 2 starts here */
.auth-icon {
  position: fixed;
  bottom: 0.5rem;
  right: 0.5rem;
  background-color: #333;
  border-radius: 100rem;
  padding: 0.3rem;
  width: 2rem;
  cursor: pointer;
}
.delete-icon,
.edit-icon {
  width: 2rem;
  background-color: #333;
  border-radius: 0.5rem;
  padding: 0.25rem;
  cursor: pointer;
}
@media (orientation: portrait) {
  .auth-icon {
    display: none;
  }
}

.auth-modal,
.menu-modal {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.4);
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-window {
  background-color: #333;

  padding: 2.5rem;
  border-radius: 0.5rem;
  width: 30rem;

  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  position: relative;
}
.modal-window h4 {
  color: #eee;
  font-weight: 500;
  font-size: 1.2rem;
}
.modal-window input {
  background-color: #111;
  border: none;
  outline: none;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  color: white;
}
.modal-window button {
  background-color: #c894e4;
  border: none;
  outline: none;
  padding: 0.25rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  cursor: pointer;
}
.modal-window button:disabled {
  cursor: not-allowed;
}
.close-button {
  width: 1.3rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.all-inputs {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.name-and-desc {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.menu-and-add-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.menu-icon {
  cursor: pointer;
  background-color: white;
  border-radius: 0.5rem;
  padding: 0.25rem;
  width: 2.5rem;
}
.file-and-numbers {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.file-and-number {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.file-and-number h3 {
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  user-select: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 500;
  text-wrap: wrap;
}
.file-input-container {
  overflow: hidden;
  width: 5rem;
  height: 4.5rem;
  background-color: #777;
  position: relative;
  border-radius: 0.5rem;
  transition: 0.15s;
}
.file-input-container:hover {
  background-color: #888;
}

.file-and-number input[type="file"] {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}
.file-and-number input[type="number"] {
  width: 6rem;
}

.double-product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.double-product img {
  height: 2.65rem;
  width: 2.65rem;
}
