@import url("https://fonts.googleapis.com/css2?family=Rethink+Sans:wght@300;400;500;600;700;800;900&display=swap");

html {
  font-family:
    "Rethink Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    "Helvetica Neue",
    sans-serif;
  color: rgb(71, 71, 71);
  font-weight: 300;
}
body {
  font-family: inherit;
;
}
button,
input,
select,
textarea,
a {
  font-family: inherit;
}

body,
ul,
li,
p {
  margin: 0px;
  padding: 0px;
  list-style: none;
}

a {
  text-decoration: none;
}

#container {
  width: 100%;
  display: grid;
  grid-template-rows: 130px auto 200px;
}

header {
  grid-row: 1/2;
  display: grid;
  box-shadow: 0px 0px 15px 0px #b1b0b0;
  z-index: 100;
  position: fixed;
  width: 100%;
  left: 0;
  height: 90px;
  background-color: white;
}

footer {
  grid-row: 3/4;
}

.bold {
  font-weight: bolder;
}

.hidden {
  display: none;
}

.grid {
  display: grid;
}

.no-border {
  border-bottom: none;
}

.title-h1 {
  line-height: 5px;
  color: black;
}

.btn {
  display: grid;
  color: #004e00;
  background-color: #00dd00;
  border-radius: 15px;
  cursor: pointer;
  font-weight: bolder;
  padding: 6px 6px;
  margin: 2px;
  font-size: 14px;
  border: none;
  text-align: center;
  justify-content: center;
  align-content: center;
}

.btn:hover {
  color: #266e26;
  background-color: #62f062;
}

.btn-void {
  color: #00dd00;
  background-color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 900;
  border: 2px solid #00dd00;
  margin: 2px;
}

.btn-void:hover {
  color: white;
  background-color: #00dd00;
  font-weight: 900;
}

.small {
  font-size: 11px;
}

.medium {
  font-size: 12px;
}

.green {
  color: #116e42;
}

.grey {
  color: grey;
}

.black {
  color: rgb(62, 62, 62);
}

.nav-bar {
  display: grid;
  background-color: white;
  grid-template-columns: 25% 50% 25%;
  z-index: 1;
}

.nav-subbar__categories {
  display: grid;
}

.nav-bar__logo {
  display: grid;
  justify-content: left;
  align-items: center;
  grid-column: 1/2;
  margin-left: 80px;
}

.nav-bar__search-bar {
  display: flex;
  grid-column: 2/3;
  z-index: 101;
  width: 100%;
  min-width: 300px;
  justify-self: center;
  align-self: center;
  justify-content: center;
  align-content: center;
  padding: 0 10px;
}

.nav-bar__search-input {
  display: flex;
  position: fixed;
  height: 40px;
  width: 100%;
  max-width: 750px;
  min-width: 200px;
  justify-content: center;
  align-content: center;
  justify-self: center;
  align-self: center;
  z-index: 100;
}

.search-sugestion__title {
  font-size: 15px;
  color: grey;
  margin: 5px 5px 0px 5px;
  padding: 5px;
  border-radius: 5px;
  font-weight: bold;
}

.search-sugestion__Li {
  background-color: white;
  border-color: white;
  padding: 2px;
  margin: 5px 10px;
  border-radius: 5px;
}

.nav-bar__search-sugestion {
  z-index: 101;
}

.search-sugestion__Li:hover {
  background-color: #c6f0db;
}

.search-sugestion__a {
  display: block;
  text-decoration: none;
  width: 100%;
  color: grey;
}

.nav-bar__logo-img {
  display: flex;
  justify-self: center;
  align-self: center;
  min-width: 170px;
  width: 70%;
}

.nav-bar__user-area {
  grid-column: 3/4;
  display: grid;
  grid-template-columns: 50% 50%;
  justify-content: center;
  align-self: center;
  justify-self: right;
  width: 110px;
  column-gap: 30px;
  margin-right: 60px;
}

.nav-bar__login-area {
  grid-column: 1/2;
  display: grid;
  justify-content: center;
  align-content: center;
  align-self: center;
  justify-self: right;
}

.nav-bar__account {
  display: grid;
  justify-self: center;
  align-content: center;
  align-self: center;
  cursor: pointer;
}

.nav-bar__login-link {
  display: grid;
  align-self: center;
}

.nav-bar__login-img {
  display: grid;
  align-self: center;
  margin-top: 8px;
  width: 35px;
  cursor: pointer;
  position: relative;
  bottom: 4px;
}

/*************sidebar************/

.sidebar-menu {
  position: fixed;
  top: 80px;
  right: -260px;
  width: 250px;
  height: 100%;
  transition: right 300ms ease-in-out;
  z-index: 100;
}

.sidebar__welcome-text {
  text-align: left;
  font-size: 25px;
  color: #00dd00;
  font-weight: bold;
  margin: 15px;
}

.sidebar-menu .sidebar,
.sidebar-cart .sidebar {
  border-radius: 15px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 10px;
  z-index: 100;
  box-shadow:
    0px 187px 75px rgba(0, 0, 0, 0.01),
    0px 105px 63px rgba(0, 0, 0, 0.05),
    0px 47px 47px rgba(0, 0, 0, 0.09),
    0px 12px 26px rgba(0, 0, 0, 0.1),
    0px 0px 0px rgba(0, 0, 0, 0.1);
}

.sidebar-menu .sidebar .sidebar__close,
.sidebar-cart .sidebar .sidebar__close {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 20px;
}


.sidebar-menu.active,
.sidebar-cart.active {
  right: 0px;
}

.sidebar-menu .toggle-btn {
  position: absolute;
  top: 20px;
  left: 238px;
  width: 30px;
  height: 30px;
  text-align: center;
  padding-left: 8px;
  cursor: pointer;
  background: #fff;
  color: #111;
  border-radius: 50%;
  font-size: 18px;
  line-height: 30px;
}

/* Empty cart illustration styles */
.empty-cart-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  min-height: 300px;
}

.sad-cart-image {
  width: 250px;
  height: 250px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.empty-cart-text {
  font-size: 18px;
  font-weight: 600;
  color: black;
  margin-bottom: 8px;
}

.empty-cart-subtext {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

.sidebar-menu.active .toggle-btn i.fa {
  transform: rotate(180deg);
}

.form-link-wrapper {
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: inherit;
  color: inherit;
}

.sidebar-menu .sidebar .links .link > a,
.form-link-wrapper {
  text-decoration: none;
  display: block;
  padding: 10px 5px;
  color: #555;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-menu .sidebar .links .link > a i.fa,
.form-link-wrapper i.fa {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.sidebar-menu .sidebar .links .link.active > a,
.sidebar-menu .sidebar .links .link > a:hover,
.form-link-wrapper.active,
.form-link-wrapper:hover {
  background: #eafbf2;
  color: #00dd00;
}

/*************sidebar-menu************/

/*************sidebar-cart************/

.sidebar-cart {
  position: fixed;
  top: 80px;
  right: -410px;
  width: 400px;
  height: 100%;
  transition: right 300ms ease-in-out;
  z-index: 100;
}

.img-trash-edit-bar {
  width: 10px;
  cursor: pointer;
}

.fa-trash {
  width: 20px;
  cursor: pointer;
}

.cart-container__title h3 {
  padding: 0px;
  margin: 10px;
}

#checkout-container__cart .cart-container__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#cart-container {
  display: grid;
  justify-content: center;
}

.cart-container__title-text {
  font-size: 20px;
  font-weight: bold;
  color: #00dd00;
}

.cart-item {
  height: 90px;
  margin: 5px;
  width: 100%;
  display: grid;
  grid-template-columns: 14% 72% 14%;
  border-bottom: 1px solid lightgrey;
  justify-self: center;
  align-content: center;
  justify-content: center;
  transition:
    all 0,
    6s;
  position: relative;
}

.cart-item__img-link {
  display: grid;
  grid-row: 1/2;
  grid-column: 1/2;
  padding: 10px;
}

.cart-item__img {
  justify-self: center;
  align-self: center;
  width: 40px;
}

.cart-item__wrapper {
  font-size: 14px;
  display: grid;
  grid-row: 1/2;
  grid-column: 2/3;

  padding: 5px;
}
.cart-item__subtotal {
  font-size: 14px;
  margin: 15px 30px 15px 0;
  text-align: right;
}

.cart-item__remove-form {
  display: grid;
  grid-column: 3/4;
  justify-content: center;
  align-content: center;
}

.cart-item__remove-btn {
  display: grid;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 12px;
  background-color: #ffffff;
  background-image: url("/images/trash-can.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;

  justify-content: center;
  align-content: center;
}

.cart-item__info {
  display: grid;
  grid-template-columns: 25% 50% 25%;
  height: 35px;
  grid-column: 1/2;
  justify-content: center;
  align-content: center;
  align-items: center;
  justify-items: center;
  margin: 0px 10px 0px 10px;
}

.cart-item__quantity-wrapper {
  display: flex;
  width: 60px;
  height: 20px;
  border: 1px solid lightgray;
  border-radius: 5px;
  padding: 3px;
  margin: 3px;
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
  cursor: pointer;
}

.cart-item__title {
  display: flex;
  justify-content: center;
  align-content: center;
  padding: 3px;
  margin: 3px;
}

.cart-item__quantity-unity {
  text-align: left;

  display: flex;
  margin-left: 2px;
  justify-self: left;
  align-self: center;
}

.cart-item__value {
  display: grid;
  grid-template-columns: 15% 25% 55% 10%;
  padding: 3px;
  margin: 3px;
}

.edit {
  display: grid;
  width: 100px;
  height: 40px;
  justify-content: center;
  align-content: center;
}

.edit-cart-item__form {
  display: grid;
  grid-template-columns: 25px auto auto 25px;
  height: 40px;
  width: auto;
  justify-self: center;
  align-self: center;
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
  cursor: default;
}

.cart-item__quantity-sum {
  grid-column: 2/3;
  display: flex;
  justify-self: center;
  align-self: center;
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
}

.cart-item__quantity-unity {
  grid-column: 3/4;
  display: flex;
  text-align: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  align-content: center;
}

input[name="productId"],
input[name="_csrf"],
input[name="currentPage"],
input[name="index"],
input[name="quantity"] {
  display: none;
}

.edit-item__quantity-sum {
  display: flex;
  width: 30px;
  border: none;
  justify-self: center;
  align-self: center;
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
}

.edit-cart-item__quantity-sum {
  grid-column: 2/3;
  grid-row: 1;
  display: flex;
  text-align: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  align-content: center;
}

.edit-cart-item__quantity-unity {
  grid-column: 3/4;
  grid-row: 1;
  display: flex;
  text-align: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  align-content: center;
  cursor: default;
}

/* Chrome, Safari, Edge, Opera */
.edit-item__quantity-sum::-webkit-outer-spin-button,
.edit-item__quantity-sum::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.edit-item__quantity-sum[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* .edit-cart-item__button-wrapper {
  grid-column: 3/4;
  display: grid;
  height: 50px;
  grid-template-rows: 10% 40% 40% 10%;
  justify-self: center;
  align-self: center;
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
} */

.edit-cart-item__plus-btn {
  display: grid;
  grid-column: 4/5;
  grid-row: 1;
  height: 15px;
  width: 15px;
  justify-content: center;
  align-content: center;
  justify-self: center;
  align-self: center;
}

.edit-cart-item__minus-btn {
  display: grid;
  grid-column: 1/2;
  grid-row: 1;
  height: 15px;
  width: 15px;
  justify-self: center;
  align-self: center;
  justify-content: center;
  align-content: center;
}

.item__quantity-sum {
  text-align: center;
  display: inline;
}

.cart-item__value p {
  grid-column: 2/3;
  margin-right: 2px;
  justify-self: right;
  align-self: center;
}

.cart-item__value-sum {
  margin-left: 2px;
  grid-column: 3/4;
  justify-self: left;
  align-self: center;
}

.cart-container__unveil-itens {
  display: grid;
  justify-self: center;
  width: 110px;
  text-align: center;
  cursor: pointer;
  transition: all 0.6s;
}

.cart-container__unveil-itens:hover {
  color: green;
}

.cart-item__remove-button {
  grid-column: 2/3;
}

.cart-item__remove-button button {
  color: rgb(0, 0, 0);
  cursor: pointer;
}

.cart-item__remove-button button:hover,
.cart-item__remove-button button:active {
  color: white;
  border-color: #004e00;
  background-color: #004e00;
}

.cart-item__close {
  display: grid;
  justify-self: right;
  align-self: center;
}

.cart-item__subtotal {
  font-size: 14px;
  justify-self: right;
  width: 250px;
}

#cart-item__order-btn {
  margin: 10px;
}

.cart-item__edit-quantity {
  width: 35px;
}

#cart-clear {
  display: flex;
  justify-self: right;
  align-self: center;
  margin-right: 20px;
  font-size: 11px;
  color: #004e00;
  padding: 10px 10px 0 10px;
  cursor: pointer;
}

/*************sidebar-cart************/

button.logout {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

.search-bar {
  border-radius: 5px;
  background-image: url("/images/magnifier.png");
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: right 1.5% top 50%;
  width: 100%;
  height: 25px;
  padding: 0 10px;
}

.search-bar:focus {
  background-image: url("/images/magnifier-green.png");
}

.account-text {
  grid-row: 2/3;
}

.account-text p {
  font-size: 13px;
}

.nav-bar__cart {
  display: grid;
  height: 55px;
  justify-self: left;

  cursor: pointer;
}

.nav-bar__cart__wrapper {
  grid-row: 1/2;
  display: flex;
  justify-content: center;
  align-content: start;
  align-self: center;
}

.nav-bar__cart__img {
  display: grid;
  align-content: center;
  justify-content: center;
  align-self: center;
}

.nav-bar__cart__img-icon {
  align-self: center;
  width: 33px;
}

.nav-bar__cart-counter {
  display: grid;
  font-size: 11px;
  font-weight: bolder;
  border: 1px solid #00dd00;
  border-radius: 10px;
  background-color: #00dd00;
  color: white;
  padding: 2px;
  height: 10px;
  width: 10px;
  margin: 3px;
  position: relative;
  z-index: 2;
  justify-content: center;
  align-content: center;
}

.cart-text {
  grid-row: 2/3;
  display: grid;
  justify-content: center;
}

.cart-item__title-text {
  text-transform: capitalize;
}

.cart-text p {
  font-size: 13px;
}

.nav-bar--categories__link {
  display: grid;
  justify-content: center;
  align-content: center;
  grid-template-rows: 70px 20px;
  height: 100%;
}



.products-container {
  grid-row: 2/3;
  display: grid;
  min-height: 1000px;
  justify-content: center;
  margin-bottom: 100px;
  grid-template-rows: 140px auto;
}

.nav-subbar {
  display: grid;
  z-index: 1;
  height: 100%;
  width: 100%;
  grid-row: 1/2;
  align-self: center;
  justify-content: center;
  justify-items: center;
}

.nav-bar--categories__itens {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  column-gap: 20px;
  justify-content: center;
  align-items: top;
  height: auto;
  min-height: 70px;
  justify-self: center;
}

.nav-subbar > .nav-bar--categories__itens,
.nav-bar--categories > .nav-bar--categories__itens {
  justify-self: center;
  margin-inline: auto;
}

.nav-bar--categories__itens li {
  display: grid;
  height: auto;
  align-content: center;
}

.nav-bar--categories__itens li a img {
  border-radius: 10px;
}

.borderBottom {
  border-bottom: 2px solid #00dd00;
}



/* Category Icons Styling */
.nav-bar--categories__itens li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  padding: 5px;
  border-radius: 8px;
  transition: all 0.3s ease;
  height: 100%;
}

.nav-bar--categories__itens li a:hover {
  background-color: #f0f8f0;
  transform: translateY(-2px);

}

.category-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.nav-bar--categories__itens li a:hover .category-icon {
  transform: scale(1.1);
}

.category-name {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  text-align: center;
  line-height: 1.2;
}

.nav-bar--categories__itens li.borderBottom a .category-name {
  color: #00dd00;
  font-weight: 600;
}

/* Categories Carousel (index.ejs) */
.categories-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  align-self: center;
  justify-self: center;
  justify-content: center;
  justify-items: center;
  gap: 8px;
  width: min(1200px, 100%);
  margin-inline: auto;
  place-self: center;
}
.categories-carousel .nav-bar--categories__viewport {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  padding-inline: 0;
  justify-self: center;
  touch-action: pan-y;
  cursor: grab;
}

.categories-carousel .nav-bar--categories__itens {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(0);
  transition: transform 300ms ease;
  will-change: transform;
}
.categories-carousel .nav-bar--categories__itens li {
  flex: 0 0 var(--cat-item-width, 140px);
}
.categories-carousel .nav-bar--categories__itens li a {
  height: 100%;
}

.nav-bar--categories__arrow-products,
.nav-bar--categories__arrow {
  width: 30px;
  height: 30px;
  font-size: 30px;
  border-radius: 20px;
  margin-right: 10px;
  border: none;
  background-color: #ffffff;
  color: #00dd00;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}
.nav-bar--categories__arrow-products {
 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24);
}
.nav-bar--categories__arrow-products:disabled,
.nav-bar--categories__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.nav-bar--categories__arrow:hover:not(:disabled),
.nav-bar--categories__arrow:focus-visible:not(:disabled) {
  color: #8fe4ba;
  box-shadow: 0 2px 8px rgba(20, 200, 110, 0.25);
  outline: none;
}
.nav-bar--categories__arrow-products:active:not(:disabled)
.nav-bar--categories__arrow:active:not(:disabled) {
  transform: scale(0.98);
}

.products {
  grid-row: 2/3;
  display: flex;
  column-gap: 10px;
  row-gap: 35px;
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  margin-top: 30px;
}

.products__item {
  display: grid;
  background-color: rgb(240, 238, 238);
  width: 130px;
  height: 235px;
  border-radius: 10px;
  padding: 10px;
}

.products__img {
  display: block;
  height: 130px;
  width: 130px;
  position: relative;
}

.products__img img {
  display: grid;
  justify-self: center;
  align-self: center;
  height: 120px;
  width: 120px;
  border-radius: 15px;
}
.products__img--unavailable img {
  filter: grayscale(100%);
  opacity: 0.4;
}
.cart-item__add-btn,
.cart-item__edit-btn {
  display: grid;
  height: 25px;
  width: 50px;
  font-size: 12px;
  justify-self: center;
  position: relative;
  top: 5px;
}

.cart-item__add-btn {
  width: 70px;
}

.products__add-to-cart-btn {
  height: 25px;
  width: auto;
  border: none;
}

.products__add-btn {
  position: absolute;
  left: 100px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24);
  background-color: white;
  color: #00dd00;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: right;
  cursor: pointer;
  font-size: 16px;
}
.products__add-btn:disabled {
  background-color: #cfcfcf;
  color: #f5f5f5;
  cursor: not-allowed;
}

.products__edit-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-top: 1px solid #e0e0e0;
  cursor: default;
}

.products__edit-minus,
.products__edit-plus {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24);
  background-color: white;
  color: #00dd00;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.products__edit-qty-to-display::-webkit-inner-spin-button,
.products__edit-qty-to-display::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0; /* Removes margin around the arrows */
}

.products__edit-minus-remove {
  background-image: url("/images/trash-can.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid #ffffff;
  background-color: #ffffff;
}

.products__edit-qty-to-display {
  field-sizing: content;
  max-width: 30px;
  border: none;
  font-weight: 700;
  font-size: 12px;
  box-sizing: border-box;
  -moz-appearance: textfield;
  margin-left: 2px;
  margin-right: 2px;
  /* outline: none; */
}

.products__edit-unit {
  margin: 5px;
  font-size: 14px;
  color: grey;
}

.products__price {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

.products__price-item {
  margin-right: 4px;
}

.products__unitWeight {
  display: inline;
  font-weight: 400;
}

.products__discount-wrapper {
  display: block;
}

.products__discount {
  color: white;
  display: inline;
  background-color: #1eae67;
  font-size: 11px;
  font-weight: 400;
  border-radius: 5px;
  padding: 1px;
}
.products__indisponivel {
  color: #b1b0b0;
  font-weight: bold;
  font-size: 12px;
  margin-top: 6px;
}

.products__scheduled-stamp img {
  width: 100px;
  height: 18px;
}

.products__scheduled-price-per-kilo span {
  font-weight: 500;
}

.inventory-limit-balloon {
  position: absolute;
  background-color: #fff9f9;
  color: #d9534f;
  border: 1px solid #d9534f;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
  animation: balloonPop 2.4s forwards;
}

.inventory-limit-balloon::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #d9534f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.inventory-limit-balloon::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-right: 6px solid #fff9f9;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  filter: drop-shadow(0 1px 0 rgba(217, 83, 79, 0.5));
}

.inventory-limit-balloon--left::after {
  left: auto;
  right: -6px;
  border-right: none;
  border-left: 6px solid #fff9f9;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

@keyframes balloonPop {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.95);
  }
  10% {
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
  20% {
    transform: translateY(0) scale(1);
  }
  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

.products__priceWithoutDiscount {
  text-decoration: line-through;
  color: #b1b0b0;
  display: inline;
  font-size: 12px;
  margin-right: 5px;
}

.products__description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  color: black;
  font-size: 13px;
}

.products__price-Kg {
  display: block;
  font-size: 11px;
  color: #b1b0b0;
  font-weight: bolder;
}

.products__item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.products__unit {
  font-weight: 100;
  color: #b1b0b0;
  display: inline;
  margin-left: 3px;
}

.products__title {
  color: black;
}

.products__price-unit {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: 50% 50%;
  width: 90%;
}

.message-container {
  position: relative;
  display: grid;
  align-self: center;
  justify-self: center;
  margin: 10px;
  max-width: 300px;
}

.user-message {
  border: 1px solid rgb(89, 89, 247);
  background: rgb(173, 191, 252); /** message text should have neutral colors**/
  padding: 0.5rem;
  border-radius: 3px;
  display: inline-flex;
  text-align: justify;
  letter-spacing: 0.1px;
  padding: 10px;
}

.user-message--error {
  border-color: red;
  background: rgb(248, 175, 175);
  color: red;
}

/* Footer */
.footer {
  background-color: white;
  color: #e6f4ea;
  border-top: 1px solid lightgray;
  padding: 5px;
}

.footer a {
  color: black;
}

.footer a:hover,
.footer a:focus {
  color: #004e00;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.footer__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__group--logo {
  justify-content: center;
  align-content: center;
}

.footer__group--logo img {
  width: 120px;
  height: auto;
  justify-self: center;
  align-self: start;
}

.footer__group--payments {
  display: flex;
  justify-self: start;
  align-items: start;
}

.footer__group--payments span {
  align-self: center;
  font-size: 14px;
  text-align: center;
  color: #004e00;
}

.footer__payments-img {
  width: 180px;
  max-width: 100%;
  height: auto;
}

.footer__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #004e00;
  margin: 0 0 8px 0;
}

.footer__links {
  display: grid;
  gap: 6px;
}

.footer__link {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.footer__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer__text {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.95;
  color: black;
}

.footer__social-list {
  display: grid;
  gap: 8px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer__social-img {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.footer__bottom {
  border-top: 1px solid rgba(230, 244, 234, 0.08);
  padding: 14px 16px;
}

.footer__bottom-text {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 13px;
  color: #c8ecd7;
  opacity: 0.8;
}

/* Responsive Media Queries */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .footer__container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-bar__itens {
    grid-template-columns: 20% 60% 20%;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    column-gap: 16px;
    width: min(1000px, 96%);
  }
  .products__item {
    max-width: 200px;
    min-height: 180px;
  }

  .nav-bar__search-input {
    width: 50%;
  }

  .nav-bar__search-bar {
    width: 90%;
  }

  .nav-bar__logo-img {
    width: 70%;
  }

  .nav-bar__user-area {
    height: 50px;
    border-radius: 20px;
    width: 110px;
    justify-content: center;
    align-content: center;
    justify-self: center;
    align-self: center;
    padding: 8px;
  }

  .categories-carousel {
    width: min(1000px, 90%);
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .footer__container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #container {
    grid-template-rows: 90px auto 50px;
  }

  .nav-bar__itens {
    grid-template-columns: 25% 50% 25%;
  }

  .nav-bar__logo-img {
    width: 90%;
  }

  .nav-bar--categories__itens {
    column-gap: 10px;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    column-gap: 16px;
    width: min(900px, 96%);
  }
  .products__item {
    max-width: 190px;
    min-height: 175px;
  }

  .nav-bar__search-input {
    width: 50%;
  }

  .nav-bar__search-bar {
    width: 90%;
  }

  .nav-bar__logo-img {
    width: 70%;
  }

  .nav-bar__user-area {
    width: 110px;
  }

  .categories-carousel {
    width: min(900px, 94%);
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  body {
    margin-left: 5px;
    margin-right: 5px;
  }
  .footer__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #container {
    grid-template-rows: 80px auto 50px;
  }

  .nav-bar {
    grid-template-rows: 55% 45%;
  }

  .nav-bar__itens {
    grid-template-columns: 30% 40% 30%;
  }

  .nav-bar--categories__itens {
    column-gap: 5px;
    font-size: 14px;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    column-gap: 14px;
    width: min(720px, 98%);
  }
  .products__item {
    max-width: 180px;
    min-height: 170px;
  }

    .sidebar-menu {
      width: 260px;
      right: -260px;
    }


  .sidebar-cart {
    width: 370px;
    right: -370px;
  }

  .cart-item {
    width: 100%;
    height: auto;
    grid-template-columns: 18% 67% 15%;
  }
  .cart-item__img {
    width: 30px;
  }
  .cart-item__quantity-wrapper {
    width: 54px;
  }
  .cart-item__remove-btn {
    width: 20px;
    height: 20px;
  }

  .nav-bar__search-bar {
    width: 80%;
  }

  .nav-bar__search-input {
    width: 40%;
  }

  .nav-bar__logo-img {
    width: 65%;
  }

  .nav-bar__user-area {
    width: 110px;
  }

  .categories-carousel {
    width: min(720px, 96%);
  }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  html,
  body {
    font-size: 16px;
    margin-left: 5px;
    margin-right: 5px;
  }

  .footer__container {
    grid-template-columns: 1fr;
  }

  header {
    height: 120px;
  }

  #container {
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
    grid-template-rows: 140px auto 50px;
  }

  .nav-bar-checkout__title {
    display: grid;
    justify-self: center;
    justify-content: center;
    align-self: center;
    align-content: center;
    width: 150px;
  }

  .nav-bar-checkout__title p{
    font-size: 18px;
  }

  .nav-bar {
    grid-template-columns: 30% 40% 30%;
  }

  .nav-bar__logo {
    margin-left: 10px;
    width: 120px;
    justify-self: left;
  }

  .nav-bar-checkout__logo a{
    width: 100%;
  }

  .nav-bar__logo-img {
    width: auto;
    min-width: 90px;
    max-width: 100px;
  }


  .nav-bar__search-bar {
    grid-row: 2/3;
    grid-column: 1/4;
  }

  .nav-bar__search-input {
    position: fixed;
    width: 250px;
    display: grid;
    justify-self: right;
    align-self: center;
  }

  .nav-bar__search-sugestion {
    display: flex;
    top: 20px;
  }

  .nav-bar__user-area {
    margin-right: 10px;
    width: 100px;
    justify-self: right;
    width: 90px;
    column-gap: 5px;
  }

  .nav-bar {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 40% 60%;
    padding: 10px;
    overflow-x: hidden;
  }

  .search-bar {
    display: grid;
    width: 250px;
    justify-self: center;
    height: 22px;
    font-size: 12px;
  }

  .nav-bar--categories__itens {
    grid-template-columns: repeat(5, 1fr);
    column-gap: 2px;
    font-size: 12px;
  }



  .nav-bar--categories__link {
    display: grid;
    justify-content: center;
    grid-template-rows: 70px 30px;
    height: 90%;
    align-content: start;
    align-items: start;
  }

  .category-icon {
  
    grid-row: 1/2;
    height: 60px;
    width: 60px;

  }

  .category-name{
    text-align: center;
    grid-row: 2/3;
    font-size: 11px;
  
  }

  .nav-bar__login-btn {
    font-size: 12px;
    padding: 5px 7px;
    font-weight: 600;

  }

  .nav-bar__cart__img {
    margin-top: 0;
    align-content: center;
  }
  .nav-bar__cart__img img {
    width: 30px;
  }

  .nav-bar__cart-counter {
    font-size: 12px;
    height: 10px;
    width: 10px;
  }

  .account-text p,
  .cart-text p {
    font-size: 11px;
  }

  .products {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 10px;
    row-gap: 12px;
    width: 100%;
    padding-inline: 5px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .products__item {
    width: 100%;
    max-width: none;
    min-height: 0;
    height: 210px;
    position: relative;
    aspect-ratio: 13 / 23;
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .products__img {
    display: grid;
    justify-self: center;
    align-self: center;
    width: 95%;
    height: 95%;
    aspect-ratio: 1 / 1;
  }
  .products__img img {
    width: 95px;
    height: 95px;

    border-radius: 10px;
  }

  .products__item-wrapper {
    height: auto;
  }

  .products__add-btn {
    left: auto;
    height: 22px;
    width: 22px;
  }
  .products__price-item {
    font-size: 12px;
  }
  .products__unitWeight {
    font-size: 11px;
  }
  .products__priceWithoutDiscount {
    font-size: 10px;
  }
  .products__discount {
    font-size: 9px;
  }
  .products__price-Kg {
    font-size: 10px;
  }

  .products__description {
    font-size: 12px;
  }

  .products__scheduled-stamp img {

    height: 18px;
  }

  .products__edit-minus,
  .products__edit-plus {
    width: 23px;
    height: 23px;
  }

  .products__edit-bar {
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .edit {
    width: auto;
    height: auto;
  }

  .edit-cart-item__form {
    grid-template-columns: 20px auto auto 20px;
    height: 60px;
    width: auto;
  }

  .sidebar-menu{
    width: 260px;
    right: -260px;
  }


  .sidebar-cart {
    width: 370px;
    right: -370px;
  }

  .cart-item {
    width: 100%;
    height: auto;
    grid-template-columns: 12% 76% 12%;
  }

  .cart-item__info {
    display: grid;
    grid-template-columns: 25% 50% 25%;
  }

  .cart-item__img {
    width: 30px;
  }
  .cart-item__quantity-wrapper {
    width: auto;
    height: 30px;
  }

  .cart-item__quantity-wrapper edit {
    width: auto;
    height: 20px;
  }

  .cart-item__remove-btn {
    width: 20px;
    height: 20px;
  }

  .products__description {
    font-size: 13px;
  }

  .categories-carousel {
    height: auto;
    padding-inline: 8px;
    box-sizing: border-box;
  }
  html,
  body,
  #container,
  .products-container,
  .nav-subbar,
  .categories-carousel {
    overflow-x: hidden;
  }


}

@media (max-width: 375px) {
  html,
  body {
    font-size: 15px;
    margin-left: 4px;
    margin-right: 4px;
  }

  header {
    height: 120px;
  }

  #container {

    padding-left: 4px;
    padding-right: 4px;
    grid-template-rows: 180px auto 50px;
  }

  .nav-bar {
    padding: 8px;
  }

  .nav-bar__logo {
    margin-left: 6px;
    width: 90px;
  }

  .nav-bar__logo-img {
    width: 30%;
    min-width: 90px;
  }

  .nav-bar__search-input {
    width: 240px;
  }

  .search-bar {
    width: 230px;
    font-size: 11px;
  }

  .nav-bar__user-area {
    width: 80px;
    margin-right: 6px;
    column-gap: 4px;
  }

  .sidebar-menu,
  .sidebar-cart {
    width: 280px;
    right: -280px;
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 10px;
    padding-inline: 6px;
  }

  .products__item {
    
    aspect-ratio: 12 / 19;
    padding: 5px;
  }

  .products__img {
    width: 100%;
  }

  .products__add-btn {
    height: 20px;
    width: 20px;
  }

  .cart-item {
    grid-template-columns: 14% 72% 14%;
  }

  .message-container {
    max-width: 260px;
  }

  .footer__container {
    padding: 18px 10px;
    gap: 16px;
  }

  .footer__title {
    font-size: 14px;
  }

  .footer__text,
  .footer__link {
    font-size: 13px;
  }
}
