:root {
  --primarybackground: #efe9e3;
  --secondaryElement: rgb(210, 180, 140);
  --natural: #708238;
  --typography: #392727;
  --button-background: #c9b59c;
  --button-color: black;
  --coffee-accent: #d2b48c;
  --bg-cream: #faf7f2;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Comic Neue", cursive;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth !important;
}

body {
  background-color: var(--primarybackground);
  color: var(--typography);
}
section {
  scroll-margin-top: 7rem;
}
#section-1 {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 6vw, 6rem);
}
.text {
  display: flex;
  flex-direction: column;
  padding: 7rem 0 3rem 0;
  gap: 3rem;
}

.hero-text {
  font-size: clamp(4rem, 6vw, 7rem);
  font-weight: 900;
  line-height: 1.1;
  font-family: "Inria Serif", serif;
  color: var(--typography);
  text-align: center;
  animation: fadeup 1s ease-out forwards;
}
.sub-text {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--typography);
  text-align: center;
  animation: fadeup 1s ease-out forwards;
}
.shop-now {
  width: 15rem;
  height: 4rem;
  border-radius: 0.5rem;
  background-color: var(--button-background);
  font-size: medium;
  font-weight: bold;
  border-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin: auto;
  animation: shopfadein 1s ease-out forwards;
}
@keyframes shopfadein {
  from {
    opacity: 0;
    transform: translatex(-50px);
  }
  to {
    opacity: 1;
    transform: translatex(0);
  }
}
.images {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 300px;
  animation: imagefade 1s ease-out forwards;
}
.image {
  filter: drop-shadow(-4rem 0.8rem 0.7rem rgba(0, 0, 0, 0.5));
  width: 420px;
  max-width: 800px;
  height: auto;
  position: absolute;
  top: 55%;
  left: 53%;
  transform: translate(-50%, -50%);
}

/* For laptop screen */
@media (min-width: 720px) {
  #section-1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .image {
    width: 100%;
    max-width: 650px;
  }
  .images {
    height: 50rem;
    animation: imagefadein 1s ease-out forwards;
  }

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

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

@keyframes imagefade {
  from {
    opacity: 0;
    transform: translatey(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* about section */
.About {
  padding: 80px 10%;
  background: #f6ede9;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.about-image img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}
.about-content {
  max-width: 500px;
  text-align: center;
}

.about-content h2 {
  font-size: 3rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-family: "Inria Serif", serif;
  font-weight: 700;
}
.underline {
  display: block;
  width: 70px;
  height: 3px;
  background: #6d4c41;
  margin: 10px auto 20px;
}
.about-content p {
  color: var(--typography);
  line-height: 1.7;
  font-size: 1.6rem;
  margin-bottom: 25px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.social-icons .social-tag {
  background-color: #6d4c41;
}

/* mobile in about */

.container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  place-items: center;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(0.5rem);
  z-index: 2000;
}

.hidden {
  display: grid;
  animation: fadeIn 1s forwards;
}
.scrolled {
  background-color: #fbfafa45;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.card,
.second-card {
  grid-area: 1 / 1;
  display: none;
  flex-direction: column;
  max-width: 42rem;
  min-width: 33rem;
  margin: auto;
  background: #fbfafa;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.15);
}

.show {
  display: flex;
  animation: fadeIn 1s forwards;
}

.card form {
  display: flex;
  flex-direction: column;
}

form .input,
.login-username,.login-password{
  width: 100%;
  padding: 1.4rem;
  margin-bottom: 1.5rem;
  border-radius: 0.6rem;
  border: 0.1rem solid #ccc;
  font-size: 1.4rem;
}

form .input:focus {
  outline: none;
  border-color: #0e3ecd;
}

.checkbox {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.card button {
  width: 100%;
  padding: 1.4rem;
  background: var(--button-background);
  color: var(--typography);
  border: none;
  font-weight: 800;
  border-radius: 0.6rem;
  font-size: large;
  cursor: pointer;
}

.second-login {
  width: 15rem;
  height: 4rem;
  border-radius: 0.5rem;
  background-color: var(--button-background);
  font-size: medium;
  font-weight: bold;
  border-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin: auto;
}

.title {
  text-align: center;
  font-size: large;
}

.login-text {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.4rem;
}

button:hover {
  background: #b69f83;
}
.menu-section {
  padding: 8rem clamp(2rem, 6vw, 6rem);
}

.menu-header {
  text-align: center;
  max-width: 60rem;
  margin: 0 auto 6rem auto;
}

.menu-header h2 {
  font-size: clamp(3rem, 5vw, 4.8rem);
  color: var(--typography);
  margin-bottom: 2rem;
}

.menu-header p {
  font-size: 1.6rem;
  line-height: 1.7;
  opacity: 0.8;
}
.menu-carousel {
  position: relative;
  overflow-x: auto;
  display: flex;
  position: relative;
  margin: 50px auto;
  width: 90%;
  padding: 1rem 0 0 0;
  &::-webkit-scrollbar {
    display: none;
  }
}
.menu-carousel:has(.menu-card:hover) .menu-flex {
  animation-play-state: paused;
}
.menu-flex {
  display: flex;
  animation: menuCardAnimation 7s linear infinite;
  justify-content: center;
  gap: 3rem;
  padding-right: 3rem;
}

.menu-card {
  background: #fbfafa45;
  padding: 3rem;
  max-width: 300px;
  min-width: 300px;
  border-radius: 14px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}
.Menu-photo {
  width: 200px;
  max-height: 300px;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.menu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.08);
}

@keyframes menuCardAnimation {
  from {
    transform: translate(0);
  }
  to {
    transform: translate(-100%);
  }
}
@media (max-width: 660px) {
  .menu-carousel {
    width: 100%;
    padding: 1rem;
  }
  .menu-flex {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }
  .menu-card {
    max-width: 250px;
    min-width: 250px;
    padding: 2rem;
  }
}

.menu-info {
  text-align: center;
}
.menu-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}
.menu-info p {
  font-size: 1.4rem;
  opacity: 0.7;
  padding-bottom: 1.5rem;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--natural);
}
.menu-more-section {
  display: flex;
  justify-content: center;
}
.menu-more-section a {
  text-decoration: none;
  font-size: 2rem;
  font-variant: small-caps;
  font-weight: 900;
  color: var(--typography);
  padding: 1.1rem 2rem;
  border-radius: 12px;
  background-color: var(--button-background);
  border-style: none;
  transition: transform 0.5s;
  cursor: pointer;
  &:hover {
    transform: scale(1.05);
  }
}
.shop-more-section a:hover {
  transform: scale(1.05);
}
footer {
  background-color: #3e3133c9;
  padding: 2rem;
  text-align: center;
  color: white;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer p {
  font-size: 1.5rem;
}

.scroll-to-top {
  position: fixed;
  bottom: 7.2rem;
  right: 2rem;
  color: var(--typography);
  border: none;
  padding: 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  background-color: var(--button-background);
  text-align: center;
  transition: 0.5s ease;
}

.scroll-to-top img {
  width: 20px;
  height: 17px;
}
.scroll-to-top:hover {
  background-color: #b69f83;
  transform: scale(1.1);
}

footer .social-media {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(1.2rem, 2vh, 2rem);
  margin-top: 1rem;
}
.social-tag {
  padding: 0.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: transparent;
  position: relative;
}
.social-tag:hover {
  background-color: var(--svg-color);
  transition: background-color 0.3s ease;
}
.social-tag svg {
  width: 25px;
  height: 25px;
}

.social-tag svg {
  fill: var(--primarybackground);
}
.social-tag::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -2.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 1.3rem;
  color: white;
  text-decoration: none;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
  font-weight: bold;
  background-color: var(--svg-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) rotate(20deg);
  transition: 200ms ease;
}

.social-tag:hover::after {
  transform: translateY(0px) rotate(0);
  opacity: 1;
  visibility: visible;
}

#section-4 {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

#section-4 h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #1a1a1a;
  font-size: 3rem;
  color: var(--typography);
  margin-bottom: 2rem;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}
.carousel-track {
  display: flex;
  gap: 2.4rem;
  justify-content: center;
  align-items: flex-start;
  padding: 1.6rem 0 3rem;
  max-width: 900px;
  /* overflow: hidden; */
  width: 830px;
  flex-wrap: wrap;
}

.review-card {
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 18px;
  padding: 2.4rem 2rem 2.2rem;
  width: 260px;
  min-height: 265px;
  max-width: 265px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0px 20px rgba(18, 18, 18, 0.341);
}

.review-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
  margin-bottom: 1.4rem;
}

.review-name {
  font-size: 1.7rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.review-comment {
  font-size: 1.2rem;
  line-height: 1.65;
  color: #555;
  text-align: center;
  max-width: 170px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d4c5b0;
  display: inline-block;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.dot.active {
  background: #e8960a;
  transform: scale(1.25);
}
.review-form-wrapper {
  margin-top: 4rem;
  text-align: center;
}

.review-form-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  font-family: "Inria Serif", serif;
}

.review-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid #e0d6c8;
  border-radius: 10px;
  font-size: 1.5rem;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.form-input1 {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid #e0d6c8;
  border-radius: 10px;
  font-size: 1.5rem;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.form-input:focus {
  border-color: black;
}
.form-textarea {
  padding: 0.85rem 1.2rem;
  border: 1.5px solid #e0d6c8;
  border-radius: 10px;
  font-size: 1.5rem;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  resize: vertical;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.form-textarea:focus {
  border-color: black;
}

.form-submit {
  align-self: center;
  background: var(--button-background);
  color: black;
  border: none;
  padding: 0.85rem 2.8rem;
  border-radius: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.form-submit:hover {
  background: #c4a47d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 225, 225, 0.3);
}
@media (max-width: 520px) {
  .form-row {
    flex-direction: column;
  }
  footer .social-tag svg {
    width: 20px;
    height: 20px;
}
footer p {
    font-size: 1.5rem;
    margin-bottom: -10px;
}
.social-tag {
  padding: 0.7rem;}
  }
.contact {
  display: flex;
  flex-direction: column;
  padding: 8rem 2rem;
  background-color: var(--primarybackground);
}

.contact-header {
  text-align: center;
  max-width: 70rem;
  margin: 0 auto 5rem;
  font-family: "Inria Serif", serif;
}

.contact-header h2 {
  font-size: 2.8rem;
  color: var(--typography);
  margin-bottom: 2rem;
}

.contact-header p {
  color: #666;
  line-height: 1.6;
  font-size: 1.6rem;
}

.contact-wrapper {
  width: 100%;
  max-width: 120rem;
  align-self: center;
  display: flex;
  gap: 4rem;
  padding: 0 5rem;
}
.contact-info-card {
  flex: 1;
  background: #ffffff;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.contact-form-container {
  flex: 1.5;
  background: #ffffff;
  padding: 4rem;
  border-radius: 15px;
  color: #000;
}
.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  font-family: "Inria Serif", serif;
}
.info-item .icon {
  margin-right: 1.5rem;
  background: rgb(235, 214, 214);
  padding: 1rem;
  border-radius: 50%;
  text-align: center;
}
.info-item h3 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  color: var(--typography);
}
.info-item p {
  font-size: 1.4rem;
}
.map-container {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
}
.input-group {
  margin-bottom: 2rem;
}
.input-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--typography);
  font-size: 1.5rem;
}
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 1.4rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1.4rem;
}

.btn-submit {
  width: 100%;
  padding: 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--coffee-accent);
  color: var(--typography);
  font-weight: bold;
  font-size: 1.6rem;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.3s;
}
#contact-result {
  width: 100%;
  text-align: center;
  padding: 5px;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

@media (max-width: 1024px) {
  .contact-wrapper {
    padding: 0 2rem;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%;
  }
  .contact-wrapper {
    flex-direction: column;
    padding: 0;
    width: 100%;
    max-width: 50rem;
  }

  .contact-info-card,
  .contact-form-container {
    width: 100%;
    height: auto;
    padding: 2.5rem;
  }

  .contact-header h2 {
    font-size: 2.4rem;
  }
}
.user-profile {
  position: fixed;
  top: 7rem;
  right: -20rem;
  width: 20rem;
  min-height: 20rem;
  background: #e1e0e0;
  border-left: 1px solid rgba(57, 39, 39, 0.1);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  align-items: center;
  padding: 2.5rem 1.5rem 2rem;
  box-shadow: -4px 0 20px rgba(57, 39, 39, 0.08);
  transition: right 0.5s ease;
  z-index: 1500;
}

.user-profile.active {
  right: 0;
}

#profile_picture {
  position: relative;
  margin-bottom: 1.2rem;
}
canvas {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--button-background);
  cursor: pointer;
}

#user_profile_name {
  text-align: center;
  margin-bottom: 1.5rem;
}

#user_profile_name h2,#user_profile_name h2 span {
  font-family: "Inria Serif", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--typography);
  margin: 0 0 4px;
}

#user_profile_name p {
  font-size: 1.1rem;
  color: rgba(57, 39, 39, 0.5);
}

.user-profile button {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  background-color: var(--button-background);
  border: none;
  cursor: pointer;
  font-size: medium;
  font-weight: bold;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.user-profile button:hover {
  transform: scale(1.1);
}

.info-icon {
  width: 20px;
}
.nav-userprofile {
  border-radius: 50%;
  object-fit: cover;
  display: none;
}
#alert-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.alert-toast {
  display: flex;
  align-items: center;
  min-width: 30rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1rem 3rem var(--color-shadow);
  transform: translateX(-120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.alert-toast.show {
  transform: translateX(0);
  transition: transform 0.4s ease;
}

.alert-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-right: 1.2rem;
  flex-shrink: 0;
}
.alert-toast.success .alert-icon {
  color: rgb(139, 234, 15);
}
.alert-toast.error .alert-icon {
  color: #e74c3c;
}
.alert-toast.warning .alert-icon {
  color: #f1c40f;
}
.alert-msg {
  font-size: 1.4rem;
  color: var(--color-typography);
  font-weight: 600;
  flex-grow: 1;
}
.alert-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.5;
  padding-left: 1rem;
}
.alert-close:hover {
  opacity: 1;
}
