@import url('./reset.css');
:root {
  --orange-primary: #ff7a2d;
  --orange-dark: #e66a25;
  --bg-light: #f9f9f9;
  --card-bg: #fff5ee;
  --light: #ffffff;
  --cart-bg: #666;
  --popup-bg: rgba(76, 73, 73, 0.8);
  --popup-content-bg: #1c1b1b;
  --text-main: #333;
  --text-muted: #666;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-main);
}

/* Header & Banner */
.logo {
  height: 30px;
}

.logo img {
  height: 100%;
}

.header-top {
  background-color: var(--orange-primary);
  height: 80px;
}

.header-top-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-img {
  background: url('../assets/img/hero.jpg') center/cover no-repeat;
  height: 300px;
  position: relative;
}

/* Main Layout */
h1 span {
  color: var(--orange-primary)
}

.main-description {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 1rem;
  &>p {
    text-align: center;
  }
}

.main-description .title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 2rem;
}

.rank {
  display: flex;
  align-items: center;
  gap: 5px;
}

.central-img {
  z-index: 1000;
  margin-top: -80px;
}

.central-img img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid white;
}

/* Menu Section */
.menu {
  /* display: flex; */
  position: relative;
}

.menu-subtitle {
  background-color: var(--orange-primary);
  color: white;
  padding: 10px 20px;
  margin: 30px 0 15px;
}

.menu-subtitle-wrapper {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
}

/* CARD */
.menu-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.menu-card-wrapper .card {
  display: flex;
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ffe0cc;
  transition: transform 0.2s;
}

.card-header img {
  width: 180px;
  height: 120px;
  object-fit: cover;
}

.card-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.card-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content-wrapper {
  gap: 5px;
  display: flex;
  justify-content: space-between;
}

.content-wrapper-description {
  /* width: 40%; */
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-direction: column;
}

.card-content-description h3 {
  margin: 0 0 5px;
}

.card-content-description p {
  color: var(--text-muted);
  margin: 0;
}

.add_to_card {
  color: var(--text-main);
  align-self: flex-end;
  background: white;
  border: 1px solid #ddd;
  padding: 5px 15px;
  border-radius: 20px;
  cursor: pointer;
}

.add_to_card:hover {
  background: #eee;
}

.add_to_card.active {
  background: var(--orange-primary);
  color: white;
}

.add_to_card.active:hover {
  background: var(--orange-dark);
}


/* Basket Sidebar */
.basket-wrapper {
  display: none;
  flex-direction: column;
  z-index: 1000;
  width: 25%;
  position: fixed;
  top: 25%;
  right: 1rem;
  margin-left: auto;
  background: #333;
  color: white;
  padding: 1.5rem;
  border-radius: 15px;
  height: fit-content;
  .card {
    background: #fff;
    color: #333;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
  }
}

.basket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 1rem;
  button {
    font-size: 3rem;
    color: inherit;
  }
}

.basket-card-wrapper {
  padding: 1rem;
  ;
  max-height: 300px;
  overflow-y: scroll;
}

.amount {
  display: flex;
  align-items: center;
  gap: 8px;
}

.amount-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.price-wrapper {
  font-weight: bold;
}

.price-wrapper .subtotal,
.price-wrapper .delivery,
.price-wrapper .total {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.total {
  border-top: 1px solid #555;
  margin-top: 10px;
  font-weight: bold;
}

.buy-btn {
  width: 100%;
  background: var(--orange-primary);
  border: none;
  color: white;
  padding: 15px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
}

.buy-btn:hover {
  background: var(--orange-dark);
}

.basket-content {
  padding-bottom: 1.5rem;
}

/* Footer */
.footer {
  background-color: var(--orange-primary);
  height: 100px;
  margin-top: 50px;
}

.footer-content {
  height: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  color: var(--light);
}

.shoping_cart {
  cursor: pointer;
  position: fixed;
  right: 2%;
  bottom: 5%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--cart-bg);
  padding: 15px;
  img {
    height: 100%;
  }
  span {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--cart-bg);
    border-radius: 50%;
    height: 25px;
    width: 25px;
    padding: 5px;
    background-color: var(--orange-primary);
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  align-items: center;
  justify-content: center;
  background-color: var(--popup-bg);
  z-index: 10000;

}

.modal-content {
  background-color: var(--popup-content-bg);
  padding: 3rem;
  color: var(--bg-light);
  width: 300px;
  border-radius: 15px;
  h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.6rem;
  }
  p {
    text-align: center;
    font-size: 1.8rem;
  }
}

.close_modal {
  display: flex;
  justify-content: end;
  margin-bottom: 2rem;
}

.close_modal button {
  line-height: 0;
  height: 2rem;
  font-size: 2.5rem;
  color: inherit;
}

.modal-img {
  text-align: center;
  margin-bottom: 2rem;
  height: 6rem;
  img {
    height: 100%;
  }
}

.no-scroll {
  overflow: hidden;
  height: 100dvh;
  position: fixed;
  width: 100%;
}

/* Responsive */
@media (max-width: 800px) {
  body {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .card {
    flex-direction: column;
  }

  .card-img {
    height: 150px;
  }

  .basket-wrapper {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .basket-content {
    border-radius: 20px;
    background-color: var(--popup-content-bg);
    padding: 2rem;
    width: 320px;
  }
}