/* =====================================================
   MOFONGO - EL DORADO RESTAURANT
===================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    Arial,
    Helvetica,
    sans-serif;

  background: #efe2cf;
  color: #111;
}


/* =====================================================
   HEADER
===================================================== */

.top-header {
  background: #111;
  color: #fff;

  padding: 18px 20px 20px;

  text-align: center;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;
}

.back-button {
  color: #fff;

  text-decoration: none;

  font-size: 14px;
  font-weight: bold;

  flex-shrink: 0;
}

.header-title {
  flex: 1;
}

.header-title h1 {
  font-size: 30px;

  letter-spacing: 1px;
}

.header-title p {
  margin-top: 4px;

  font-size: 14px;

  color: #d7b980;
}


/* =====================================================
   CART HEADER BUTTON
===================================================== */

.cart-header-link {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 6px;

  padding: 7px 12px;

  background: #ffffff;
  color: #6b0d14;

  border: 2px solid #6b0d14;
  border-radius: 20px;

  font-size: 0.8rem;
  font-weight: 700;

  text-decoration: none;

  flex-shrink: 0;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.cart-header-link:hover {
  background: #6b0d14;

  color: #ffffff;

  transform: translateY(-1px);
}

.cart-count {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 21px;
  height: 21px;

  padding: 0 5px;

  background: #6b0d14;
  color: #ffffff;

  border-radius: 50%;

  font-size: 0.72rem;
  font-weight: 800;
}

.cart-header-link:hover .cart-count {
  background: #ffffff;
  color: #6b0d14;
}


/* =====================================================
   INTRO
===================================================== */

.mofongo-intro {
  text-align: center;

  padding: 28px 18px 22px;

  max-width: 760px;

  margin: 0 auto;
}

.mofongo-intro h2 {
  font-size: 26px;

  margin-bottom: 8px;

  color: #6b0d14;
}

.mofongo-intro p {
  line-height: 1.6;

  font-size: 15px;
}


/* =====================================================
   SLIDER SECTION
===================================================== */

.mofongo-slider-section {
  max-width: 1080px;

  margin: 0 auto;

  padding: 0 16px 28px;
}

.mofongo-slider {
  position: relative;

  width: 100%;

  aspect-ratio: 3 / 2;

  overflow: hidden;

  border-radius: 14px;

  background: #000;
}

.mofongo-slide {
  position: absolute;

  width: 100%;
  height: 100%;

  inset: 0;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.9s ease,
    visibility 0.9s ease;
}

.mofongo-slide.active {
  opacity: 1;
  visibility: visible;

  z-index: 2;
}

.mofongo-slide img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.slide-caption {
  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;

  padding: 15px 18px;

  background:
    linear-gradient(
      transparent,
      rgba(0, 0, 0, 0.88)
    );

  color: #fff;

  font-size: 21px;
  font-weight: bold;

  text-align: center;
}


/* =====================================================
   DOTS
===================================================== */

.slider-dots {
  display: flex;

  justify-content: center;

  gap: 9px;

  margin-top: 14px;
}

.slider-dot {
  width: 10px;
  height: 10px;

  border: none;
  border-radius: 50%;

  background: #a99987;

  cursor: pointer;

  transition: 0.25s ease;
}

.slider-dot.active {
  width: 28px;

  border-radius: 10px;

  background: #6b0d14;
}


/* =====================================================
   MENU
===================================================== */

.menu-container {
  width: min(900px, 92%);

  margin: 0 auto 40px;
}

.menu-item {
  background: #fff;

  border-radius: 12px;

  margin-bottom: 14px;

  padding: 20px;

  display: flex;

  justify-content: space-between;
  align-items: center;

  gap: 18px;

  border-left: 5px solid #6b0d14;

  box-shadow:
    0 4px 14px
    rgba(0, 0, 0, 0.08);
}

.menu-info {
  flex: 1;

  min-width: 0;
}

.menu-info h3 {
  font-size: 20px;

  color: #6b0d14;

  margin-bottom: 6px;
}

.menu-info p {
  font-size: 14px;

  line-height: 1.5;

  color: #444;
}


/* =====================================================
   PRICE
===================================================== */

.price-box {
  min-width: 155px;

  display: flex;

  flex-direction: column;

  gap: 5px;

  text-align: right;

  font-weight: bold;
  font-size: 14px;

  flex-shrink: 0;
}


/* =====================================================
   ADD TO CART
   OFFICIAL EL DORADO BUTTON
===================================================== */

.add-to-cart {
  flex-shrink: 0;

  min-width: 115px;

  padding: 8px 13px;

  border: none;

  border-radius: 7px;

  background: #6b0d14;
  color: #ffffff;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 12px;
  font-weight: 800;

  line-height: 1.2;

  text-align: center;

  text-transform: uppercase;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.add-to-cart:hover {
  transform: translateY(-1px);

  box-shadow:
    0 3px 8px
    rgba(0, 0, 0, 0.18);
}

.add-to-cart:active {
  transform: scale(0.97);
}

.add-to-cart.added {
  background: #267447;

  color: #ffffff;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
  background: #111;

  color: #fff;

  text-align: center;

  padding: 25px 16px;
}

.footer p {
  margin-bottom: 8px;

  font-weight: bold;
}

.footer a {
  color: #d7b980;

  text-decoration: none;

  font-size: 14px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

  .top-header {
    padding: 16px 12px;

    gap: 8px;
  }

  .back-button {
    font-size: 11px;

    white-space: nowrap;
  }

  .header-title h1 {
    font-size: 24px;
  }

  .header-title p {
    font-size: 12px;
  }

  .cart-header-link {
    padding: 6px 9px;

    font-size: 0.72rem;

    gap: 4px;
  }

  .cart-count {
    min-width: 19px;
    height: 19px;

    font-size: 0.65rem;
  }

  .mofongo-intro {
    padding-top: 23px;
  }

  .mofongo-slider-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .mofongo-slider {
    border-radius: 10px;
  }

  .slide-caption {
    font-size: 18px;

    padding: 26px 12px 12px;
  }

  .menu-container {
    width: 94%;
  }

  .menu-item {
    flex-direction: column;

    align-items: flex-start;

    gap: 12px;

    padding: 17px;
  }

  .price-box {
    width: 100%;

    min-width: 0;

    flex-direction: row;

    justify-content: space-between;

    text-align: left;

    padding-top: 10px;

    border-top: 1px solid #ddd;
  }

  .add-to-cart {
    min-width: 105px;

    padding: 7px 10px;

    font-size: 11px;

    align-self: flex-end;
  }

}


/* =====================================================
   VERY SMALL PHONES
===================================================== */

@media (max-width: 380px) {

  .top-header {
    padding-left: 8px;
    padding-right: 8px;
  }

  .back-button {
    font-size: 10px;
  }

  .header-title h1 {
    font-size: 21px;
  }

  .header-title p {
    font-size: 10px;
  }

  .cart-header-link {
    padding: 6px 7px;

    font-size: 0.66rem;
  }

  .menu-info h3 {
    font-size: 18px;
  }

  .price-box {
    font-size: 13px;
  }

  .add-to-cart {
    min-width: 96px;

    padding: 7px 8px;

    font-size: 10px;
  }

}


/* =====================================================
   TABLET
===================================================== */

@media (min-width: 601px) and (max-width: 1024px) {

  .top-header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .menu-container {
    width: 90%;
  }

  .menu-item {
    gap: 15px;
  }

}


/* =====================================================
   ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

}