/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Aclonica&family=Montserrat:wght@100..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(0, 0%, 20%);
  --first-color-alt: hsl(0, 0%, 15%);
  --second-color: hsl(0, 0%, 10%);
  --white-color: hsl(0, 0%, 98%);
  --title-color: hsl(0, 0%, 10%);
  --text-color: hsl(0, 0%, 30%);
  --text-color-light: hsl(0, 0%, 40%);
  --body-color: hsl(0, 0%, 90%);
  --body-color-alt: hsl(0, 0%, 85%);
  --container-color: hsl(0, 0%, 95%);
  --shadow-small-img: drop-shadow(0 4px 16px hsla(0, 0%, 10%, 0.2));
  --shadow-big-img: drop-shadow(0 8px 24px hsla(0, 0%, 10%, 0.2));
  --cookie-color: hsl(30, 70%, 40%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Aclonica", sans-serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-family: var(--second-font);
  font-weight: var(--font-regular);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  text-align: center;
  font-size: var(--h1-font-size);
  margin-bottom: 2rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shaddow 0.4s;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  font-family: var(--second-color);
  color: var(--title-color);
}

.nav__logo img {
  width: 200px;
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: var(--body-color);
    width: 100%;
    padding-block: 4.5rem 3.5rem;
    box-shadow: 0 4px 16px hsla(22, 100%, 8%, 0.2);
    transition: top 0.4s;
  }
}

.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
}

.nav__link {
  position: relative;
  color: var(--title-color);
  font-family: var(--second-font);
}

.nav__link::after {
  content: "";
  width: 0;
  height: 3px;
  background-color: var(--cookie-color);
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  transition: width 0.3s;
}

.nav__link:hover::after {
  width: 60%;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  top: 0;
}

/* Add shadow header */
.shadow-header {
  box-shadow: 0 4px 16px hsla(22, 100%, 8%, 0.1);
}

/* Active link */
.active-link::after {
  width: 60%;
  color: var(--cookie-color);
}

/*=============== HOME ===============*/
.home__container {
  padding-block: 3rem 2rem;
  justify-content: center;
  row-gap: 3.5rem;
}

.home__data {
  position: relative;
  text-align: center;
}

.home__title {
  font-size: var(--biggest-font-size);
  margin-bottom: 1rem;
}

.home__description {
  margin-bottom: 2.5rem;
}

.home__sticker {
  width: 40px;
  rotate: 15deg;
  position: absolute;
  bottom: 2rem;
  right: 1rem;
  opacity: 0.5;
}

.home__images {
  position: relative;
  display: grid;
  justify-items: center;
  justify-self: center;
}

.home__ingredient {
  width: 60px;
  filter: var(--shadow-small-img);
  position: absolute;
  z-index: 2;
}

.home__burger,
.home__dish {
  filter: var(--shadow-small-img);
}

.home__burger {
  width: 280px;
  z-index: 2;
}

.home__dish {
  min-width: initial;
  width: 320px;
  position: absolute;
  bottom: -2.5rem;
}

.home__potato-1 {
  left: -1rem;
  top: 0.75rem;
}

.home__potato-2 {
  right: -0.75rem;
  bottom: -2rem;
  rotate: 90deg;
}

.home__tomato-1 {
  width: 40px;
  top: -1rem;
  right: 6rem;
}

.home__tomato-2 {
  width: 40px;
  left: 5.5rem;
  bottom: -1.5rem;
}

.home__lettuce-1 {
  top: 2.5rem;
  right: -2rem;
  transform: scale(-1);
}

.home__lettuce-2 {
  left: -2rem;
  bottom: 1rem;
}

/*=============== BUTTON ===============*/

.button {
  display: inline-flex;
  background-color: black;
  color: var(--white-color);
  padding: 1rem 1.5rem;
  font-family: var(--second-font);
  border-radius: 4rem;
  transition: box-shadow 0.4s;
}

.button:hover {
  box-shadow: 0 8px 24px hsla(0, 1%, 31%, 0.59);
}

/*=============== RECIPE ===============*/
.recipe {
  overflow: hidden;
}

.recipe__container {
  grid-template-columns: 0.5fr 1fr;
  column-gap: 1rem;
  padding-bottom: 2rem;
}

.recipe__image {
  position: relative;
  display: grid;
  place-items: center;
}

.recipe__img {
  position: absolute;
  max-width: initial;
  width: 200px;
  left: -6rem;
  filter: var(--shadow-big-img);
}

.recipe__data {
  display: grid;
  row-gap: 2rem;
}

.recipe__card {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
}

.recipe__box {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background-color: var(--first-color);
  border: 3px solid var(--container-color);
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
}

.recipe__box img {
  width: 50px;
  filter: var(--shadow-small-img);
}

.recipe__title {
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

.recipe__description {
  font-style: var(--small-font-size);
}

.recipe__card:nth-child(even) .recipe__box {
  order: 1;
}

/*=============== POPULAR ===============*/
.popular {
  background-color: var(--body-color);
}

.popular__container {
  padding-block: 2rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 1.5rem;
}

.popular__card {
  position: relative;
  background-color: hsl(0deg 0% 69.27%);
  padding: 6rem 0.75rem 3rem;
  border-radius: 1rem;
  border: 4px solid var(--first-color);
}

.popular__img {
  position: absolute;
  top: -2rem;
  left: 0;
  right: 0;
  width: 120px;
  margin: 0 auto;
  filter: var(--shadow-small-img);
  transition: transform 0.4s;
}

.popular__title {
  font-size: var(--normal-font-size);
  margin-bottom: 0.75rem;
  white-space: normal; /* Permite a quebra de linha normal */
  word-wrap: break-word; /* Força a quebra de palavras se necessário */
  /* max-width: 151px; Limita a largura do título para forçar a quebra */
  display: block;
}
.popular__subtitle {
  text-align: center;
  margin-top: -1rem;
  font-size: var(--small-font-size);
}

.popular__price {
  color: var(--title-color);
  font-family: var(--second-font);
  font-style: var(--h2-font-size);
}

.popular__button {
  position: absolute;
  right: 0.75rem;
  bottom: 1rem;
  outline: none;
  border: none;
  background-color: var(--second-color);
  color: var(--white-color);
  padding: 6px;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  display: inline-flex;
  cursor: pointer;
}

.info__button {
  position: absolute;
  right: 0.75rem;
  top: 1rem;
  outline: none;
  border: none;
  background-color: var(--second-color);
  color: var(--white-color);
  padding: 2px;
  border-radius: 1.5rem;
  font-size: 1rem;
  display: inline-flex;
  cursor: pointer;
}

.popular__card:hover .popular__img {
  transform: translateY(-0.5rem);
}

/*=============== DELIVERY ===============*/
.delivery__container {
  row-gap: 2.5rem;
}

.delivery__data {
  position: relative;
  text-align: center;
}

.delivery__container .section__title {
  margin-bottom: 1rem;
}

.delivery__description {
  margin-bottom: 2rem;
}

.delivery__sticker {
  width: 30px;
  rotate: 15deg;
  position: absolute;
  right: 1rem;
  bottom: 1.5rem;
  opacity: 0.5;
}

.delivery__img {
  width: 320px;
  justify-self: center;
  filter: var(--shadow-big-img);
}

/*=============== CONTACT ===============*/
.contact__container {
  position: relative;
  background-color: var(--second-color);
  padding-top: 3.5rem;
  border-radius: 3rem;
  overflow: hidden;
}

.contact__content {
  row-gap: 3rem;
}

.contact__container .section__title,
.contact__title,
.contact__info {
  color: var(--white-color);
}

.contact__data {
  text-align: center;
  row-gap: 2rem;
}

.contact__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.75rem;
}

.contact__social {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}

.contact__social a {
  width: 32px;
  height: 32px;
  background-color: var(--first-color);
  color: var(--second-color);
  font-size: 1.5rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  transition: transform 0.4s;
}

.contact__social a:hover {
  transform: translateY(-0.25rem);
}

.contact__info {
  font-style: normal;
}

.contact__image {
  justify-self: center;
}

.contact__img {
  width: 280%;
}

.contact__sticker-1,
.contact__sticker-2 {
  position: absolute;
  opacity: 0.5;
}

.contact__sticker-1 {
  width: 40px;
  top: 6.5rem;
  left: 1.5rem;
}

.contact__sticker-2 {
  width: 30px;
  right: 3rem;
  bottom: 12rem;
}

/*=============== FOOTER ===============*/
.footer {
  padding-block: 3rem 2rem;
  background-color: var(--container-color);
}

.footer__container {
  row-gap: 1.5rem;
}

.footer__logo {
  font-size: var(--h1-font-size);
  font-family: var(--second-font);
  color: var(--title-color);
  justify-self: center;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  row-gap: 1rem;
}

.footer__link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__social {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.footer__social a {
  width: 32px;
  height: 32px;
  background-color: var(--first-color);
  color: var(--white-color);
  font-size: 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.4s;
}

.footer__social a:hover {
  transform: translateY(-0.25rem);
}

.footer__copy {
  display: block;
  text-align: center;
  font-size: var(--smaller-font-size);
  margin-top: 3rem;
  color: var(--text-color-light);
}

/* Selo como cartão aceito */
.footer__badge {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.footer__badge-img {
  width: 170px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer__badge-img:hover {
  opacity: 1;
}

/*=============== BREAKPOINTS ===============*/

/* Dispositivos pequenos (telefones, 480px para cima) */
@media (min-width: 480px) {
  .footer__content {
    grid-template-columns: repeat(3, max-content);
  }

  .footer__social {
    grid-column: initial;
  }

  .footer__badge {
    margin-top: 1.5rem;
  }

  .footer__badge-img {
    width: 70px;
  }
}

/* Tablets (768px para cima) */
@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .footer__content {
    grid-template-columns: repeat(2, max-content);
    gap: 2rem;
  }

  .footer__logo {
    justify-self: start;
  }

  .footer__badge {
    justify-self: end;
    margin-top: 0;
  }

  .footer__badge-img {
    width: 80px;
  }
}

/* Notebooks/desktops (1024px para cima) */
@media (min-width: 1024px) {
  .footer__badge-img {
    width: 150px;
  }

  .footer__link {
    font-size: var(--normal-font-size);
  }
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(34, 16%, 75%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(34, 16%, 65%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(34, 16%, 55%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(22, 100%, 8%, 0.2);
  color: var(--title-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  border-radius: 0.35rem;
  transition: bottom 0.4s, transform 0.4s;
}

.scrollup:hover {
  transform: translateY(-0.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 330px) {
  .container {
    margin-inline: 1rem;
  }

  .home__title {
    font-size: 2.5rem;
  }

  .home__burger {
    width: 210px;
  }

  .home__dish {
    width: 250px;
    bottom: -2rem;
  }

  .recipe__container {
    column-gap: 5rem;
  }

  .reciper__img {
    left: -8rem;
  }

  .popular__container {
    grid-template-columns: 160px;
    justify-content: center;
  }

  .footer__social {
    grid-column: 1;
  }

  .footer__content {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .home__container,
  .delivery__container {
    grid-template-columns: 360px;
    justify-content: center;
  }

  .recipe__img {
    position: initial;
  }

  .recipe__container {
    grid-template-columns: 200px 230px;
    justify-content: center;
    column-gap: 3rem;
  }

  .popular__container {
    grid-template-columns: repeat(2, 160px);
    justify-content: center;
  }

  .contact {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media screen and (min-width: 768px) {
  .popular__container {
    grid-template-columns: repeat(3, 160px);
  }

  .footer__social {
    grid-column: initial;
  }

  .footer__content {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .footer__link:nth-child(1) {
    justify-self: start;
  }

  .footer__link:nth-child(2) {
    order: 2;
    justify-self: end;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section__title {
    margin-bottom: 4.5rem;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }

  .home__container {
    grid-template-columns: 430px 605px;
    align-items: center;
    column-gap: 4rem;
    padding-block: 7rem 4rem;
  }

  .home__data {
    text-align: initial;
  }

  .home__description {
    margin-bottom: 3.5rem;
    padding-right: 3rem;
  }

  .home__sticker {
    width: 60px;
    right: 10rem;
    bottom: 1rem;
  }

  .home__burger {
    width: 600px;
  }

  .home__dish {
    width: 560px;
    bottom: -4rem;
  }

  .home__ingredient {
    width: 100px;
  }

  .home__potato-1 {
    left: -2rem;
    top: 1.5rem;
  }

  .home__potato-2 {
    right: -1.5rem;
    bottom: -3rem;
  }

  .home__tomato-1 {
    width: 70px;
    top: -1.5rem;
    right: 10rem;
  }

  .home__tomato-2 {
    width: 70px;
    left: 9.5rem;
    bottom: -2.5rem;
  }

  .home__lettuce-1 {
    top: 4rem;
    right: -3.5rem;
  }

  .home__lettuce-2 {
    left: -3.5rem;
    bottom: 2rem;
  }

  .recipe__container {
    grid-template-columns: 350px 300px;
    column-gap: 8rem;
    padding-bottom: 3rem;
  }

  .recipe__img {
    width: 350px;
  }

  .recipe__card {
    column-gap: 1rem;
  }

  .recipe__box {
    width: 100px;
    height: 100px;
    border-radius: 1.25rem;
    border-width: 5px;
  }

  .recipe__box img {
    width: 85px;
  }

  .recipe__title {
    font-size: var(--h3-font-size);
  }

  .recipe__description {
    font-size: var(--normal-font-size);
  }

  .popular__container {
    grid-template-columns: repeat(3, 250px);
    gap: 6.5rem 4rem;
    padding-block: 3rem;
  }

  .popular__card {
    padding: 9.5rem 1.25rem 3.25rem;
    border-radius: 2rem;
    border-width: 6px;
  }

  .popular__img {
    width: 200px;
    top: -3.5rem;
  }

  .popular__title {
    font-size: var(--h2-font-size);
  }

  .popular__price {
    font-size: var(--h1-font-size);
  }

  .popular__button {
    font-size: 1.5rem;
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .delivery__container {
    grid-template-columns: 440px 550px;
    column-gap: 4rem;
    align-items: center;
    padding-block: 1rem;
  }

  .delivery__container .section__title,
  .delivery__data {
    text-align: initial;
  }

  .delivery__description {
    margin-bottom: 3rem;
  }

  .delivery__sticker {
    width: 50px;
    right: 8rem;
    bottom: 0;
  }

  .delivery__img {
    width: 500px;
  }

  .contact {
    max-width: initial;
  }

  .contact__container {
    border-radius: 4rem;
    padding-block: 4rem 6.5rem;
  }

  .contact__content {
    grid-template-columns: 420px 435px;
    justify-content: center;
    column-gap: 6.5rem;
  }

  .contact__data {
    grid-template-columns: repeat(2, max-content);
    text-align: initial;
    gap: 4.5rem 0px;
    order: 1;
  }

  .contact__social {
    justify-content: initial;
  }

  .contact__title {
    margin-bottom: 1rem;
  }

  .contact__image {
    position: relative;
    width: 100%;
  }

  .contact__img {
    width: 420px;
    position: absolute;
    top: -2.5rem;
  }

  .contact__sticker-1 {
    width: 70px;
    left: 27rem;
    top: 10rem;
  }

  .contact__sticker-2 {
    width: 40px;
    right: 10rem;
    bottom: 5.5rem;
  }

  .footer {
    padding-block: 5rem 3rem;
  }

  .footer__container {
    row-gap: 3.5rem;
  }

  .footer__copy {
    margin-top: 4rem;
  }

  .scrollup {
    right: 3rem;
  }
}

/* Sacola e Contador */
#cart-icon {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem;
  border-radius: 28%;
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: red;
  color: var(--white-color);
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
}

/* Modal */
.cart-modal {
  display: none;
  position: fixed;
  z-index: var(--z-fixed);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.cart-modal-content {
  background-color: var(--container-color);
  margin: 5% auto;
  padding: 20px;
  border: 1px solid var(--text-color);
  width: 90%;
  max-width: 600px;
  position: relative;
  border-radius: 12px;
  max-height: 90%;
  overflow-y: auto;
  /* Permite rolar apenas o modal */
  box-sizing: border-box;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

.cart-items {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Estilos para cada item do carrinho */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid var(--text-color-light);
  gap: 10px;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
}

.cart-item-details {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-name {
  flex: 2;
  min-width: 100px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-controls button {
  background-color: var(--first-color);
  color: var(--white-color);
  border: none;
  padding: 8px 12px;
  font-size: 1.4rem;
  border-radius: 30%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cart-item-controls button:hover {
  background-color: var(--first-color-alt);
}

.cart-item-controls span {
  font-size: 1.2rem;
}

.cart-total {
  margin-top: 2rem;
  font-size: 1.2rem;
  text-align: right;
}

@media (max-width: 768px) {
  .cart-modal-content {
    width: 95%;
    margin: 5% auto;
  }

  .cart-item img {
    width: 40px;
    height: 40px;
  }

  .cart-item-controls button {
    padding: 6px 10px;
    font-size: 1.2rem;
  }

  .cart-total {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .cart-item {
    gap: 5px;
  }

  .cart-item img {
    width: 60px;
    height: 60px;
  }

  .cart-item-controls button {
    padding: 5px 8px;
    font-size: 1rem;
  }

  .cart-item-name {
    flex: 2;
    min-width: 80px;
  }

  .cart-item-details {
    justify-content: space-between;
    width: 100%;
  }
}

/* Form fields inside modal */
.cart-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-form input,
.cart-form select,
.cart-form textarea {
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--text-color-light);
  border-radius: 8px;
  width: 100%;
}

.cart-form textarea {
  resize: vertical;
  height: 100px;
}

.cart-form label {
  font-size: 1rem;
  color: var(--title-color);
}

.order-button {
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem;
  border: none;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.order-button:hover {
  background-color: var(--first-color-alt);
}

/* Estilo para o modal de informações */
#info-modal {
  display: none;
  position: fixed;
  z-index: var(--z-fixed);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

#info-modal .cart-modal-content {
  background-color: var(--container-color);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid var(--text-color);
  width: 80%;
  max-width: 600px;
  position: relative;
  border-radius: 12px;
}

.info-modal-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  background-color: black;
  border-radius: 50%; /* Torna a imagem perfeitamente circular */
  display: block;
  margin: 0 auto 20px; /* Centraliza e define o espaçamento inferior */
  box-shadow: 0px 4px 8px rgb(169 162 162); /* Sombra suave para profundidade */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Efeito de transição suave */
}

.info-modal-img:hover {
  transform: scale(1.05); /* Aumenta a imagem levemente ao passar o mouse */
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2); /* Aumenta a intensidade da sombra */
}

#info-modal-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#info-modal-description {
  font-size: 1rem;
  color: var(--text-color);
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

.disabled {
  pointer-events: none; /* Desativa o clique */
  opacity: 0.5; /* Faz com que pareçam desabilitados */
  cursor: not-allowed; /* Mostra o cursor como 'não permitido' */
}

/* Estilo para o modal de status de funcionamento */
#status-modal {
  display: none;
  position: fixed;
  z-index: var(--z-fixed);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

#status-modal .cart-modal-content {
  background-color: var(--container-color);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid var(--text-color);
  width: 80%;
  max-width: 600px;
  position: relative;
  border-radius: 12px;
}

#status-modal-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#status-modal-description {
  font-size: 1rem;
  color: var(--text-color);
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

label {
  font-weight: 600;
}

/** Border and drinks **/
/* Estilo do Step 2 */
.cart-form-step-2 {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Botão de Place Order no Step 2 (igual ao Step 1) */
.cart-form-step-2 .order-button {
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem;
  border: none;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.cart-form-step-2 .order-button:hover {
  background-color: var(--first-color-alt);
}

/* Contêiner de bebidas e cream cheese */
.addons-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Estilo para cada item (bebida ou cream cheese) */
.addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid var(--text-color-light);
  background-color: var(--container-color);
  margin-bottom: 1rem;
}

/* Texto do item */
.addon-item span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--title-color);
  flex: 0;
}

/* Botões + e - no Step 2 */
.addon-item button {
  background-color: var(--first-color);
  color: var(--white-color);
  border: none;
  padding: 8px 12px;
  font-size: 1.4rem;
  border-radius: 30%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.addon-item button:hover {
  background-color: var(--first-color-alt);
}

/* Contador de quantidade */
.addon-item .addon-quantity {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--title-color);
  margin: 0 10px;
}

/* Checkbox para cream cheese */
#cream-cheese-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#cream-cheese-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--first-color);
  cursor: pointer;
}

/* Textarea para detalhes do cream cheese */
#cream-cheese-container textarea {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--text-color-light);
  border-radius: 8px;
  width: 100%;
  resize: vertical;
  height: 100px;
}

/* Ajustes para dispositivos menores */
@media (max-width: 768px) {
  .addon-item button {
    padding: 6px 10px;
    font-size: 1.2rem;
  }

  .addon-item .addon-quantity {
    font-size: 1rem;
  }

  #cream-cheese-container textarea {
    height: 80px;
  }
}

/* Wrapper para alinhamento */
.cream-cheese-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

/* Estilo para o checkbox customizado */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--title-color);
  cursor: pointer;
}

/* Estilo da caixa de seleção */
.custom-checkbox input[type="checkbox"] {
  display: none; /* Esconde o checkbox padrão */
}

.custom-checkbox .checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-color-light);
  border-radius: 4px;
  position: relative;
  background-color: var(--white-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
  background-color: var(--first-color);
  border-color: var(--first-color);
}

.custom-checkbox .checkmark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid var(--white-color);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
  display: block;
}

/* Estilo do botão Place Order */
.order-button {
  background-color: var(--first-color);
  color: var(--white-color);
  padding: 1rem;
  border: none;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%; /* Deixa o botão ocupar toda a largura */
  text-align: center;
  transition: background-color 0.3s ease;
}

.order-button:hover {
  background-color: var(--first-color-alt);
}

/* Botão responsivo */
@media (max-width: 768px) {
  .order-button {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}

/* ============= ESTILOS BASE ============= */
.box-options {
  margin: 0.8rem 0;
  position: relative;
}

.box-selector {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--first-color);
  background-color: var(--container-color);
  color: var(--text-color);
  font-size: var(--small-font-size);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-weight: var(--font-medium);
}

.box-selector:focus {
  outline: none;
  border-color: var(--second-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Seta personalizada */
.box-options::after {
  content: "▼";
  font-size: 0.8rem;
  color: var(--first-color);
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Estilo para as opções */
.box-selector option {
  padding: 0.5rem;
  background-color: var(--container-color);
  color: var(--text-color);
}

.box-selector option:hover {
  background-color: var(--first-color);
  color: white;
}

/* Destaque visual para as opções de box */
.box-selector option[value="box4"],
.box-selector option[value="box6"] {
  font-weight: var(--font-semi-bold);
  position: relative;
}

.box-selector option[value="box4"]::after,
.box-selector option[value="box6"]::after {
  content: "SAVE";
  background-color: hsl(130, 60%, 50%);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  position: absolute;
  right: 0.5rem;
}

/* Estilos para o carrinho */
.cart-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--text-color-light);
  gap: 1rem;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h3 {
  font-size: var(--normal-font-size);
  margin-bottom: 0.25rem;
}

.cart-item-details p {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: none;
  background-color: var(--first-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity {
  min-width: 20px;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--text-color-light);
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 0.5rem;
}

.remove-btn:hover {
  color: var(--first-color);
}

.savings {
  color: hsl(130, 50%, 50%);
  font-size: 0.8rem;
  font-weight: bold;
}

/* Feedback visual */
.popular__button i.ri-check-line {
  font-size: 1.2rem;
}

.box-size {
  background-color: var(--first-color);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: var(--font-semi-bold);
}

.savings-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: hsla(130, 60%, 50%, 0.1);
  border-radius: 12px;
  margin-top: 1rem;
  font-weight: var(--font-semi-bold);
  color: hsl(130, 60%, 40%);
}

.savings-summary i {
  font-size: 1.2rem;
}

/* Animação do modal */
.cart-modal {
  transition: all 0.3s ease;
}

.cart-modal-content {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============= BREAKPOINTS ============= */

/* Dispositivos muito pequenos (telefones, 360px para cima) */
@media (min-width: 360px) {
  .box-selector {
    font-size: calc(var(--small-font-size) + 0.05rem);
  }

  .cart-item-img {
    width: 65px;
    height: 65px;
  }
}

/* Dispositivos pequenos (telefones, 480px para cima) */
@media (min-width: 480px) {
  .box-options {
    margin: 1rem 0;
  }

  .box-selector {
    padding: 0.9rem 1.1rem;
  }

  .cart-item {
    padding: 1.2rem;
  }
}

/* Tablets pequenos (600px para cima) */
@media (min-width: 600px) {
  .box-selector {
    font-size: var(--normal-font-size);
  }

  .box-options::after {
    font-size: 0.9rem;
  }

  .cart-item-details h3 {
    font-size: calc(var(--normal-font-size) + 0.1rem);
  }
}

/* Tablets (768px para cima) */
@media (min-width: 768px) {
  .box-selector {
    padding: 1rem 1.2rem;
  }

  .cart-item {
    gap: 1.5rem;
  }

  .cart-item-img {
    width: 70px;
    height: 70px;
  }

  .quantity-btn {
    width: 28px;
    height: 28px;
  }
}

/* Tablets grandes/notebooks pequenos (900px para cima) */
@media (min-width: 900px) {
  .box-selector option {
    padding: 0.7rem;
  }

  .cart-item-controls {
    gap: 0.8rem;
  }
}

/* Notebooks/desktops pequenos (1024px para cima) */
@media (min-width: 1024px) {
  .box-selector {
    padding: 1rem 1.5rem;
  }

  .box-options::after {
    right: 1.2rem;
  }

  .cart-item {
    padding: 1.5rem;
  }
}

/* Desktops médios (1200px para cima) */
@media (min-width: 1200px) {
  .box-selector {
    max-width: 300px;
    margin: 0 auto;
  }

  .cart-item-img {
    width: 80px;
    height: 80px;
  }
}

/* Dispositivos grandes (1400px para cima) */
@media (min-width: 1400px) {
  .box-selector {
    font-size: calc(var(--normal-font-size) + 0.1rem);
  }

  .cart-item-details h3 {
    font-size: calc(var(--normal-font-size) + 0.2rem);
  }
}

/* ============= AJUSTES PARA TELAS PEQUENAS ============= */

/* Telefones pequenos em modo paisagem (max-width: 767px) */
@media (max-width: 767px) {
  .cart-item {
    flex-direction: row;
    align-items: center;
  }

  .cart-item-controls {
    width: auto;
    margin-top: 0;
  }
}

/* Telefones muito pequenos (max-width: 479px) */
@media (max-width: 479px) {
  .box-selector {
    padding: 0.7rem 0.9rem;
    font-size: calc(var(--small-font-size) - 0.05rem);
  }

  .box-options::after {
    right: 0.8rem;
    font-size: 0.7rem;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cart-item-controls {
    width: 28%;
    margin-top: 0.5rem;
  }

  .quantity-btn {
    width: 30px;
    height: 30px;
  }

  .box-selector option[value="box4"]::after,
  .box-selector option[value="box6"]::after {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
  }
}

/* Dispositivos muito pequenos (max-width: 359px) */
@media (max-width: 359px) {
  .box-selector {
    padding: 0.6rem 0.8rem;
  }

  .cart-item {
    padding: 0.8rem;
  }

  .cart-item-img {
    width: 50px;
    height: 50px;
  }
}

/*=============== LEGAL PAGES ===============*/
.legal__container {
  max-width: 900px;
}

.legal__content {
  display: grid;
  gap: 1.5rem;
}

.legal__card {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.legal__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px hsla(0, 0%, 0%, 0.15);
}

.legal__card h2 {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
  color: var(--first-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal__card p,
.legal__card ul {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal__card ul {
  padding-left: 1.5rem;
}

.legal__card li {
  margin-bottom: 0.3rem;
}

/*=============== BREAKPOINTS ===============*/
@media (min-width: 768px) {
  .legal__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .legal__card {
    padding: 2rem;
  }
}

.savings-summary {
  background-color: hsl(50, 100%, 90%);
  padding: 0.8rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.savings-summary i {
  color: var(--first-color);
  font-size: 1.2rem;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #232323;
  flex-direction: row;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-right: 1rem;
}

/*==================== NEW ====================*/
.new__container {
  row-gap: 2rem;
  padding-top: 1rem;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 8px 20px hsla(19, 64%, 24%, 0.1);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  list-style: none;
  padding: 0;
  margin: 0;
}

.carousel-slide {
  min-width: 100%;
  opacity: 0.5;
  transform: scale(0.9);
  transition: all 0.5s var(--transition);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--container-color);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
  z-index: var(--z-tooltip);
  box-shadow: 0 4px 8px hsla(19, 64%, 24%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

.new__img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 1rem;
}

.new__content {
  margin-top: 2rem;
  text-align: center;
}

.new__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.5rem;
  color: var(--title-color);
}

.new__price {
  display: block;
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.new__button {
  margin: 0 auto;
}

/*=============== BREAKPOINTS ===============*/
@media screen and (min-width: 576px) {
  .new__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
  }
}

@media screen and (min-width: 767px) {
  .new__img {
    max-height: 800px;
  }
}

@media screen and (min-width: 992px) {
  .new__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 3rem;
  }

  .new__content {
    text-align: center;
    margin-top: 2rem;
  }

  .new__button {
    margin: initial;
  }
}


/*==================== NEW BUTTON ====================*/
.new__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--first-color);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: var(--font-medium);
    box-shadow: 0 4px 20px hsla(var(--hue), 64%, 24%, 0.2);
    transition: all 0.3s var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.new__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.new__button:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px hsla(var(--hue), 64%, 24%, 0.3);
}

.new__button:hover::before {
    left: 100%;
}

.new__button .button__icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    transition: transform 0.3s;
}

.new__button:hover .button__icon {
    transform: translateX(0.25rem);
}

/*=============== BREAKPOINTS ===============*/
@media screen and (min-width: 992px) {
    .new__button {
        padding: 1.25rem 2rem;
        font-size: 1rem;
    }
    
    .new__button .button__icon {
        font-size: 1.5rem;
    }
}