/* Mobile-First Styles (max-width: 375px) */
:root {
  --primary: #9356dc;
  --secondary: #ff79da;
  --tertiary: #99e2d0;
  --dark: #353535;
  --light: #f6f6f6;
  --white: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: "Roboto", sans-serif;
  background: var(--light);
  margin: 0 auto;
}

.header {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  font-family: "Shrikhand", cursive;
  font-size: 1.5rem;
  color: var(--dark);
  margin: 0 auto;
}

.menu__cover-container {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.menu__cover-title {
  bottom: 1rem;
  left: 1rem;
  color: black;
  font-family: "Shrikhand", cursive;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.menu__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu__content {
  padding: 1rem;
  background: var(--light);
  border-radius: 2rem 2rem 0 0;
  margin-top: -2rem;
  position: relative;
}

.menu__header {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
}

.menu__like {
  font-size: 1.5rem;
  background: none;
  border: none;
}

.menu-category {
  margin: 2rem 0;
}

.menu-category__title {
  font-weight: 300;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.menu-category__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--tertiary);
}

.menu-items {
  display: grid;
  gap: 1rem;
  position: relative;
  animation: overflow 0.9s ease-in-out;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  animation: slideUp 0.5s ease-in-out;
}

@keyframes overflow {
  from {
    overflow: hidden;
  }
  to {
    overflow: visible;
  }
}
@keyframes slideUp {
  from {
    top: -500px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.menu-item__price-container {
  display: flex;
  gap: 1rem;
  height: 100%;
}

.menu-item__price {
  align-self: flex-end;
  padding-bottom: 1rem;
}
.menu-item__text {
  flex: 1;
  min-width: 0;
  padding: 1rem;
}

.menu-item__title {
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item__description {
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item__price {
  font-weight: 700;
}

.menu-item__check {
  margin-right: -60px;
  width: 60px;
  height: 100%;
  background: var(--tertiary);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
}

.menu-item:hover .menu-item__check {
  margin-right: 0;
}

.order-button {
  display: block;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 2rem;
  background: linear-gradient(175deg, var(--secondary), var(--primary));
  color: var(--white);
  font-size: 1rem;
  margin: 2rem auto;
  cursor: pointer;
  transition: all 300ms ease;
  transform-origin: center;
}
.order-button:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.02);
}

.footer {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 1rem;
}

.footer-logo {
  font-family: "Shrikhand", cursive;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--light);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.refresh-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 1000;
  display: grid;
  place-items: center;
}
/* Heart Like Animation */
@keyframes heartPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.menu__like:hover .far {
  font-weight: 600;
  background: linear-gradient(175deg, var(--secondary), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: all 300ms ease;
  animation: heartPop 400ms ease;
}

@media (min-width: 1024px) {
  /* Header */
  .header {
    padding: 2rem 0;
    max-width: 1440px;
    margin: 0 auto;
  }

  .header__back {
    position: absolute;
    left: 2rem;
    font-size: 1.5rem;
  }

  .header-logo {
    font-size: 2.5rem;
  }

  /* Menu Cover */
  .menu__cover-container {
    height: 450px;
    overflow: hidden;
    margin: 0 auto;
  }

  .menu__cover-title {
    font-size: 3rem;
    left: 2rem;
    bottom: 2rem;
  }

  /* Menu Content */
  .menu__content {
    padding: 4rem 2rem;
    max-width: 1440px;
    margin: -6rem auto 0;
    border-radius: 3rem 3rem 0 0;
  }

  .menu__header {
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
  }

  /* Categories Grid */
  .menu-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
  }

  .menu-category__title {
    font-size: 1.8rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
  }

  .menu-category__title::after {
    width: 60px;
    height: 3px;
  }

  /* Menu Items */
  .menu-items {
    gap: 1.5rem;
  }

  .menu-item {
    transition: transform 0.3s ease;
  }

  .menu-item:hover {
    transform: translateY(-5px);
  }

  .menu-item__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .menu-item__description {
    font-size: 1.1rem;
  }

  .menu-item__price {
    font-size: 1.4rem;
    padding-right: 1rem;
  }

  /* Order Button */
  .order-button {
    width: 40%;
    max-width: 350px;
    padding: 1.5rem;
    font-size: 1.3rem;
    margin: 4rem auto 0;
  }

  /* Footer */
  .footer {
    padding: 3rem;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 5rem;
  }

  .footer-logo {
    margin-bottom: 0;
  }

  .footer-nav {
    flex-direction: row;
    gap: 2rem;
  }
}
