/* Root Warna */
:root {
  --primary: rgb(255, 255, 255);
  --bg: rgb(218, 194, 131);
  --kolor: rgb(210, 6, 6);
  --teks: black;
  --rgba: rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Raleway", sans-serif;
  background-color: var(--bg);
  color: var(--teks);
  /* min-height: 5000px; */
}

.notif {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4caf50; /* Warna hijau */
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 1000;
}

.notif.show {
  opacity: 1;
  transform: translateY(0);
}

/* navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 7%;
  border-bottom: 1px solid var(--kolor);
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  position: fixed;
  background-color: var(--teks);
}

/* navbar-logo */

.navbar .navbar-logo {
  display: flex;
  align-items: center;
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
}

.navbar .navbar-logo span {
  color: var(--kolor);
}

.logo_G {
  width: 60px;
  height: auto;
  margin-right: 10px;
}

/* navbar-nav */

.navbar .navbar-nav a {
  color: var(--primary);
  display: inline-block;
  font-size: 1.2rem;
  margin: 0 1rem;
  transition: 0.3s;
}

.navbar .navbar-nav a:hover {
  color: var(--kolor);
}

.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--kolor);
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.8);
}

.navbar .navbar-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar .navbar-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.navbar .navbar-icons a {
  color: var(--primary);
  font-size: 1.8rem;
}

.navbar .navbar-icons a:hover {
  color: var(--kolor);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.auth-buttons a {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s;
  text-decoration: none;
}

.login-btn {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: white;
}

.login-btn:hover {
  background-color: var(--kolor);
  color: var(--primary);
}

.register-btn {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: white;
}

.register-btn:hover {
  background-color: var(--kolor);
  color: var(--primary);
}

/* navbar-icons */
.navbar .navbar-icons a {
  color: var(--primary);
  margin: 0 0.5rem;
  font-size: 1.8rem;
}

.navbar .navbar-icons a:hover {
  color: var(--kolor);
}

.btn-auth {
  color: var(--primary);
  margin: 0 0.5rem;
  font-size: 1rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--kolor);
  border-radius: 0.5rem;
  background-color: transparent;
  transition: background-color 0.3s, color 0.3s;
}

.btn-auth:hover {
  background-color: var(--bg);
}

#menu {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0 5%;
  color: var(--primary);
  background: linear-gradient(var(--primary), var(--bg));
  position: relative;
  flex-direction: row;
  gap: 1rem;
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-logo {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 3.5rem;
  font-style: italic;
  text-shadow: 1px 4px 6px var(--teks);
}

.logo-img {
  max-width: 500px;
  height: auto;
  width: auto;
}

.hero .hero-text h1 span {
  color: var(--kolor);
  font-size: larger;
}

.hero .content p {
  color: var(--primary);
  font-size: large;
  text-shadow: 1px 4px 6px var(--teks);
}

/* Running Text (Marquee) */
.running-text-container {
  width: 100%;
  overflow: hidden;
  background-color: rgb(95, 130, 43); /* latar merah tua */
  padding: 0.1rem 1rem;
  max-width: 800px;
  margin: auto;
}

.running-text {
  white-space: nowrap;
  animation: scroll-left 15s linear infinite;

  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* hero end */

/* About Section */
.about {
  padding: 8rem 7% 5rem;
  background: linear-gradient(var(--bg), var(--primary));
  color: var(--teks);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.about-image {
  flex: 1 1 40rem;
  text-align: center;
}

.about-image img {
  max-width: 50%;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg);
}

.about-text {
  flex: 1 1 40rem;
}

.about-text h2 {
  font-size: 4rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--kolor);
}

.about-text h2 span {
  color: var(--kolor);
  font-style: italic;
}

.about-text p {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.8;
  color: var(--teks);
}

p .coffe {
  color: var(--primary);
  font-style: italic;
  font-size: larger;
}

p .nuu {
  color: var(--kolor);
  font-style: italic;
  font-size: larger;
}

/* about end */

/* Menu Section */

.menuuu {
  padding: 6rem 10% 6rem;
  background: linear-gradient(var(--primary), var(--bg));
  text-align: center;
  color: var(--teks);
}

.menuuu h2 {
  font-size: 4rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  color: var(--kolor);
}

.menu-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.menu-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  width: 220px;
  text-align: center;
  transition: transform 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
}

.menu-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}
.menu-item h3 {
  font-size: 1.6rem;
  color: var(--kolor);
  margin-bottom: 0.5rem;
}

.menu-item p {
  font-size: 1.4rem;
  color: var(--teks);
}

/* menu end */

/* Menu Search and Filter (Explore Features) */
.search-container-menu {
  margin: 2rem auto;
  display: flex;
  justify-content: center;
  max-width: 600px;
}

.search-box-menu {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-box-menu i {
  position: absolute;
  left: 1.5rem;
  color: var(--teks);
  opacity: 0.5;
  z-index: 1;
}

.search-box-menu input {
  width: 100%;
  padding: 1rem 1rem 1rem 4rem;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 1.2rem;
  font-family: "Raleway", sans-serif;
  transition: all 0.3s ease;
  background-color: var(--primary);
  color: var(--teks);
}

.search-box-menu input:focus {
  outline: none;
  border-color: var(--kolor);
  box-shadow: 0 0 0 3px rgba(210, 6, 6, 0.1);
}

.search-box-menu input::placeholder {
  color: var(--teks);
  opacity: 0.5;
}

.filter-container-menu {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  flex-wrap: wrap;
  max-width: 800px;
}

.filter-btn-menu {
  padding: 0.8rem 2rem;
  border: 2px solid var(--kolor);
  background-color: var(--primary);
  color: var(--kolor);
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Raleway", sans-serif;
}

.filter-btn-menu:hover {
  background-color: var(--kolor);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(210, 6, 6, 0.3);
}

.filter-btn-menu.active {
  background-color: var(--kolor);
  color: var(--primary);
}

.no-results-menu {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--teks);
  display: none;
}

.no-results-menu i {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.no-results-menu h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--kolor);
}

.no-results-menu p {
  font-size: 1.2rem;
  opacity: 0.7;
}

/* RESPONSIVE MENU */
@media (max-width: 768px) {
  .menuuu h2 {
    font-size: 3rem;
  }

  .menu-item {
    width: 45%;
  }

  .menu-item img {
    max-height: 120px;
  }

  .menu-item h3 {
    font-size: 1.4rem;
  }

  .menu-item p {
    font-size: 1.2rem;
  }

  .search-container-menu {
    margin: 1.5rem auto;
  }

  .search-box-menu input {
    font-size: 1rem;
    padding: 0.8rem 0.8rem 0.8rem 3.5rem;
  }

  .filter-container-menu {
    gap: 0.5rem;
    margin: 1.5rem auto;
  }

  .filter-btn-menu {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .menu-item {
    width: 100%;
  }

  .menu-item img {
    max-height: 100px;
  }

  .menu-item h3 {
    font-size: 1.3rem;
  }

  .menu-item p {
    font-size: 1.1rem;
  }

  .filter-container-menu {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn-menu {
    width: 100%;
    max-width: 300px;
  }

  .search-box-menu input {
    font-size: 0.9rem;
  }
}

/* menu end */

/* Keranjang Section */

.navbar {
  color: white;
  padding: 1rem 5%;
  display: flex;
  align-items: center;
}

.navbar-logo {
  text-decoration: none;
  color: white;
  font-size: 1.4rem;
  font-weight: bold;
}

.navbar-logo span {
  color: red;
}

.logo_G {
  height: 40px;
  margin-right: 10px;
}

/* Struktur Keranjang Seperti Tabel */

.cart-section {
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
  background: white;
  padding: 4rem 2rem 5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cart-section h2 {
  font-size: 4rem;
  font-style: italic;
  text-align: center;
  padding: 5rem 0 5rem 0rem;
  color: black(--primary);
}

.cart-section .cart {
  color: var(--kolor);
}

.cart-header {
  display: grid;
  grid-template-columns: 1fr 3fr 2fr 2fr;
  padding: 0.75rem 0;
  border-bottom: 2px solid #ddd;
  font-weight: bold;
  color: #333;
  font-size: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 20fr;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: center;
  margin: center;
}

.cart-item-name {
  font-size: 10rem;
  font-weight: 600;
  color: #444;
}

.cart-item-qty {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-qty button {
  background-color: #5f4b45;
  color: white;
  border: none;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.cart-item-price {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #555;
}

#cart-total {
  text-align: right;
  font-size: 1.2rem;
  margin-top: 1rem;
  font-weight: bold;
  color: #222;
}

.cart-header,
.cart-item {
  display: grid;
  grid-template-columns: 1fr 120px 120px 120px 80px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.cart-header {
  font-weight: bold;
  background-color: #f0f0f0;
  border-top: 2px solid #ccc;
  text-align: center;
}

.cart-item-img img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin: auto;
}

.cart-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.cart-item-qty {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.cart-item-qty button {
  background-color: #5f4b45;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.cart-item-price,
.cart-item-subtotal {
  text-align: center;
  font-size: 1rem;
  color: #444;
  font-weight: 600;
}

.remove-btn {
  background-color: crimson;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.remove-btn:hover {
  background-color: darkred;
}

.checkout-form {
  margin-top: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.checkout-form h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.checkout-form button {
  background-color: var(--kolor);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.checkout-form button:hover {
  background-color: #a30303;
}

.no-orders {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.no-orders i {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.no-orders h3 {
  color: #333;
  margin-bottom: 1rem;
}

.no-orders p {
  color: #666;
  margin-bottom: 2rem;
}

/* Keranjang end */

/* Contact Section */

.contact-container {
  display: flex;
  flex-wrap: wrap;
  padding: 7rem 6rem 0rem 2rem;
  background: linear-gradient(var(--bg), var(--primary));
  color: var(--teks);
  align-items: center;
  justify-content: center;
}

.contact-info {
  flex: 1 1 45%;
  padding: 7rem 10rem 10rem;
}

.contact-info h2 {
  font-size: 4rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  margin-left: 30px;
  color: var(--kolor);
}

.contact-info p {
  font-size: 1.4rem;
  margin: 0.5rem 0;
}

.map-container {
  flex: 4 1 50%;
  margin: 2rem;
  min-height: 300px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
  width: 100%;
  height: 350px;
}

/* Contact end */

/* Footer Section */

.footer {
  background-color: #222;
  color: #fff;
  padding: 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
}

.footer h3 span {
  color: var(--bg);
}

.footer-logo p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.footer-social h4 {
  color: var(--bg);
  font-size: larger;
  padding-bottom: 10px;
}

.footer-social a {
  color: #fff;
  text-decoration: none;
}

.footer-social a:hover {
  text-decoration: underline;
}

.footer-links h4 {
  color: var(--bg);
  font-size: larger;
}

.footer-links ul {
  font-size: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0.5rem 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social li {
  margin-bottom: 0.5rem;
}

.footer-social a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social a:hover {
  text-decoration: underline;
}

/* Contact end */

/* RESPONSIVE */

/* deckstop*/
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

/* tablet */

@media (max-width: 768px) {
  html {
    font-size: 62.5%;
  }

  #menu {
    display: inline-block;
    background: none;
    margin-left: 10px;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 2rem;
  }

  #menu:hover {
    color: var(--kolor);
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: var(--bg);
    width: 30rem;
    height: 100vh;
    transition: 0.3s ease;
    flex-direction: column;
    padding: 2rem;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: var(--primary);
    display: block;
    margin: 1.5rem 0;
    padding: 0.5rem;
    font-size: 2rem;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }
  .navbar .navbar-nav a:hover:after {
    transform: scaleX(0.6);
    transition: 0.2s;
  }
  .about-container {
    flex-direction: column;
  }

  .about-image img {
    max-width: 40%;
    height: auto;
  }

  .about-text {
    margin-top: -30%;
    font-size: 20%;
  }

  .menu-list {
    justify-content: center;
  }

  .menu-category {
    margin-top: -5%;
  }

  .menuuu .menu-list {
    align-items: center;
  }

  .menuuu .menu-item {
    width: 35%;
    max-width: 200px;
  }

  .menuuu .menu-item img {
    height: auto;
    max-height: 80px;
  }

  .menuuu .menu-item h3 {
    font-size: 16px;
  }

  .lihat-menu-lain {
    margin-top: -30px;
  }
}

/* hp */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }

  .menu-item {
    width: 100%;
  }
}

/* Order Type Selection */
.order-type-selection {
  margin: 2rem 0;
  text-align: center;
}

.order-type-selection h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.order-type-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.order-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 2px solid #e0e6ed;
  border-radius: 15px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
  text-decoration: none;
  color: inherit;
}

.order-type-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.pickup-btn:hover {
  border-color: #28a745;
  background: #f8fff9;
}

.delivery-btn:hover {
  border-color: #2196f3;
  background: #f0f8ff;
}

.btn-icon {
  font-size: 2.5rem;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.btn-text strong {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
}

.btn-text small {
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* Responsive for order type buttons */
@media (max-width: 768px) {
  .order-type-buttons {
    flex-direction: column;
    align-items: center;
  }

  .order-type-btn {
    width: 100%;
    max-width: 300px;
  }
}
