* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}
:root {
  --primary: #b25523;
  --secondary: #2b2a28b7;
  --accent: #D9B08C;
  --bg: #1a1c1b;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Fredoka', sans-serif;
  background-color: var(--bg);
  color: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: rgba(1, 1, 1, 0.8);
  border-bottom: 1px solid #513c28;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
} 
.navbar .navbar-logo span {
  color: var(--primary)
}
.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1.1rem;
  margin: 0 1rem;
}
.navbar .navbar-nav a:hover {
  color: var(--primary);
}
.navbar .navbar-nav a::after {
  content: '';
  display: block;
  padding-bottom: 0.1rem;
  border-bottom: 0.1rem solid var(--primary);
  background-color: var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}
.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}
.navbar .navbar-extra a {
  color: #fff;
  margin: 0 0.5rem;
  position: relative;
}
.navbar .navbar-extra a:hover {
  color: var(--primary);
}

.cart-count-badge {
  position: absolute;
  top: -0.6rem;
  right: -0.75rem;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #ff4d4d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(26, 28, 27, 0.9);
}

#hamburger-menu {
  display: none;
  background: none;
  cursor: pointer;
  color: #fff;
  margin: 0 0.5rem;
}
#hamburger-menu:hover {
  color: var(--primary);
}

/* Navbar Search Form */
.navbar .search-form {
  position: absolute;
  top: 100%;
  right: 7%;
  width: 50rem;
  height: 4rem;
  display: flex;
  align-items: center;
  background-color: #000000;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s;
  overflow: hidden;
  border-radius: 1rem;
  border: 1.5px solid rgba(229, 126, 58, 0.916);
}

.navbar .search-form.active {
  transform: scaleY(1);
}

.navbar .search-form input {
  height: 100%;
  flex: 1;
  padding: 1rem;
  font-size: 1.5rem;
  color: var(--bg);
}
.navbar .search-form label {
  height: 100%;
  width: 4rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  border-left: 1.5px solid rgba(229, 126, 58, 0.916);
}

/* Sidebar Main container */
.shopping-cart {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: 35rem;
  background-color: #13131a;
  border-left: 1px solid rgba(211, 173, 127, 0.2);
  padding: 1.5rem;
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 9999;
}

.shopping-cart.active {
  right: 0;
}

/* Area Item yang Bisa Di-scroll */
.cart-items-container {
  flex: 1; /* Mengambil seluruh sisa ruang kosong di atas */
  overflow-y: auto; /* Otomatis muncul scrollbar kalau item banyak */
  padding-right: 0.5rem;
  margin-bottom: 1rem;
}

/* Custom Scrollbar (Orange DuskCoffee) */
.cart-items-container::-webkit-scrollbar {
  width: 6px;
}
.cart-items-container::-webkit-scrollbar-thumb {
  background-color: #d3ad7f;
  border-radius: 10px;
}

/* Placeholder Pas Keranjang Kosong */
.empty-cart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #a1a1a1;
  text-align: center;
  padding: 3rem 0;
}

.empty-cart-placeholder .empty-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  color: #d3ad7f;
}

.empty-cart-placeholder p {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
}

.empty-cart-placeholder span {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item .item-details h3 {
  font-size: 1.4rem;
  color: #fff;
}

.cart-item .item-details .item-price {
  font-size: 1.2rem;
  color: #d3ad7f; /* Harga warna orange/gold */
}

.cart-item .remove-item {
  margin-left: auto;
  cursor: pointer;
  color: #ff4d4d;
  transition: 0.2s;
}

.cart-item .remove-item:hover {
  transform: scale(1.2);
}

/* Section Bottom / Footer Cart (Nempel di Bawah) */
.cart-footer {
  border-top: 2px solid rgba(211, 173, 127, 0.3);
  padding-top: 1.5rem;
  background-color: #13131a;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1.5rem;
}

.cart-total #cart-total-price {
  color: #d3ad7f;
}

/* Checkout Button */
.btn-checkout {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  background-color: #d3ad7f;
  color: #13131a;
  font-weight: bold;
  font-size: 1.4rem;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-checkout:hover {
  background-color: #e5be8f;
  letter-spacing: 1px;
}

/* Navbar Search End */

/* Hero Section */
.hero {
  min-height: 100vh;
  background-image: url('../img/header.jpg');
  display: flex;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero::after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: linear-gradient(0deg, rgba(1, 1, 3, 1) 8% , rgba(255, 255, 255, 0) 55%);
}
.hero .content {
  padding: 1.4rem 7%;
  max-width: 60rem;
  position: relative;
}
.hero .content h1 {
  font-size: 4rem;
  color: #e8d6cc;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  line-height: 1.2;
}
.hero .content span {
  color: var(--primary);
}
.hero .content p {
  font-size: 1.2rem;
  font-weight: 100;
  margin-top: 1.2rem;
  line-height: 1.4;
  color: #faf7f6;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  mix-blend-mode: difference;
}
.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: rgb(250, 250, 245);
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}
.hero .content .cta:hover,
.menu .see-more-items a:hover,
.products .see-more-items a:hover {
  background-color: var(--accent);
  color: #4a3e29;
  letter-spacing: 0.5px;
}

/* About Section */
.about, .menu, .contact {
  padding: 8rem 7% 1.4rem;
}
.about h2, .menu h2, .contact h2, .products h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
}
.about h2 span, .menu h2 span, .contact h2 span, .products h2 span {
  color: var(--primary);
}
.about p {
  max-width: 60rem;
  padding-bottom: 4rem;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #e8d6cc;
  text-align: center;
}
.about .row {
  display: flex;
  padding: 2rem;
}
.about .row .about-img {
  flex: 1 1 45rem;
}
.about .row .about-img img {
  width: 100%;
  border-radius: 0.5rem;
}
.about .row .content {
  flex: 1 1 35rem;
  padding: 0 2rem;
}
.about .row .content h3 {
  font-size: 1.8rem;
  padding: 1rem 0 1rem 0;
  margin-bottom: 1rem;
}
.about .row .content p {
  text-align: left;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.6;
  color: #e8d6cc;
}
#about-semangka {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
  width: 60%;
  border-radius: 0.6rem;
  background-color: var(--secondary);
  margin: 6rem auto;
}
#about-semangka a {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary);
  color:#f1ece9;
  border-radius: 0.5rem;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  font-size: 1.6rem;
}
#about-semangka img {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Make both rows consistent - image on left, text on right */
.about > .content > .row:nth-child(3) {
  flex-direction: row-reverse;
}
/* Standardize image size */
.about .row .about-img {
  height: 400px;
}
.about .row .about-img img {
  height: 100%;
  object-fit: cover;
}

/* Menu Section */
.menu h2, .contact h2 {
  margin-bottom: 1rem;
}
.menu p {
  max-width: 30rem;
  text-align: center;
  padding-bottom: 8rem;
  margin-bottom: 3rem;
  margin: auto;
  color: #e8d6cc;
  font-size: 1.4rem;
  line-height: 1.6;
}
.menu .row .menu-card {
  text-align: center;
  padding-bottom: 6rem;
  width: 25%;
}
.menu .row .menu-card img {
  border-radius: 0.5rem;
  width: 50%;
  gap: 2rem;
  display: inline-block;
}
.menu .row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 5rem;
}
.menu .row .menu-card h3 {
  font-size: 1.5rem;
  margin: 1rem auto 0.5rem;
  color: #e8d6cc;
}
.menu .see-more-items a {
  color: #e2dede;
  background-color: #b25523;
  border: 2px solid #f0e8de;
  border-radius: 1rem;
  padding: 1rem;
}

/* Products Section */
.products h2 {
  padding-top: 6rem;
  margin-top: 6rem;
}
.products p {
  max-width: 30rem;
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 6rem;
  margin: auto;
  color: #e8d6cc;
  font-size: 1.4rem;
  line-height: 1.6;
}
.products .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 0 5rem;
}
.products .product-card {
  border: 1px solid #666;
  padding: 4rem;
  border-radius: 0.5rem;
  text-align: center;
}

.products .product-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.products .product-icons a {
  width: 4rem;
  height: 4rem;
  color: #fff;
  border: 1px solid #666;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.products .product-icons a:hover {
  color: var(--primary);
  border-color: var(--primary);
  border: 1px solid var(--primary);
  background-color: var(--primary);
}
.products .product-image {
  padding: 1rem 0;
}
.products .product-image img {
  height: 25rem;
}
.products .product-content h3 {
  font-size: 2rem;
  color: #e8d6cc;
}
.products .product-stars {
  font-size: 2rem;
  padding: 0.8rem;
  color: var(--primary);
}
.products .product-stars .star-full {
  margin: 0 0.2rem;
  fill: var(--primary);
}
.products .product-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
}
.products .product-price span, .modal-content .product-price span { /* Gw satuin untuk harga disc di modal boxnya */
  text-decoration: line-through;
  font-weight: lighter;
  font-size: 1rem;
}
.products .see-more-items {
  margin: 0 auto;
  padding: 4rem;
}
.products .see-more-items a {
  color: #e2dede;
  background-color: #b25523;
  border: 2px solid #f0e8de;
  border-radius: 1rem;
  padding: 1rem;
}


/* Contact Section */
.contact p {
  max-width: 30rem;
  text-align: center;
  margin-bottom: 3rem;
  margin: auto;
  color: #e8d6cc;
  font-size: 1.4rem;
  line-height: 1.6;
}
 .contact {
  padding-bottom: 9rem;
 }
.contact .row {
  display: flex;
  margin-top: 2rem;
  background-color: #222;
  /* flex-wrap: wrap; */
}
.contact .row .map {
  flex: 1 1 45rem;
  width: 100%;
  object-fit: cover;
  border-radius: 0.5rem;  
}
.contact .row form {
  flex: 1 1 45rem;
  padding: 5rem 2rem;
  text-align: center;
}
.contact .row form .input-group {
  margin-top: 1.8rem;
  padding: 0.35rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 1.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact .row form .input-group:hover,
.contact .row form .input-group:focus-within {
  border-color: rgba(178, 85, 35, 0.85);
  box-shadow: 0 0 0 1px rgba(178, 85, 35, 0.12);
  transform: translateY(-1px);
}
.contact .row form .input-group i {
  color: #b25523;
  min-width: 2.6rem;
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact .row form .input-group input,
.contact .row form .input-group textarea,
.contact .row form .input-group select {
  width: 100%;
  padding: 1.2rem 0;
  font-size: 1.05rem;
  background: transparent;
  border: none;
  outline: none;
  color: #f4eee7;
}
.contact .row form .input-group textarea {
  min-height: 11rem;
  resize: vertical;
}
.contact .row form .select-wrapper {
  position: relative;
  width: 100%;
}
.contact .row form .select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid #f4eee7;
  border-bottom: 2px solid #f4eee7;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  opacity: 0.85;
}
.contact .row form .input-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.contact .row form .input-group select option {
  background-color: #1a1a1a; /* Bikin background opsi jadi gelap (match tema DuskCoffee) */
  color: #f4eee7;            /* Warna teks opsi */
  padding: 10px;
}
.contact .row form .input-group select option[disabled] {
  color: #888888;
}
.contact .row form .btn {
  margin-top: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2.8rem;
  font-size: 1.45rem;
  border-radius: 2.5rem;
  color: #f5f1f1;
  background: linear-gradient(60deg, #c6925d 0%, #bb844c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(178, 85, 35, 0.18);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.contact .row form .btn:hover {
  background: linear-gradient(135deg, #9b5e22 0%, #b25523 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(178, 85, 35, 0.25);
}

/* Footer */
footer {
  text-align: center;
  font-size: 12px;
  padding: 1rem 0.5rem;
  background-color: rgba(1, 1, 1, 0.8);
  color: #9c9c9c;
  border-top: 1px solid #513c28;
  bottom: 0;
  left: 0;
  right: 0;
}
footer .socials {
  padding: 4rem 0;
}
footer .socials a {
  color: #9c9c9c;
  margin: 0 0.5rem;
}
footer .socials a:hover {
  color: var(--primary);
}
footer .links {
  margin-bottom: 1rem 0;
}
footer .links a {
  color: #e5e2e2;
  padding: 0.7rem 1rem;
  margin: 0 0.5rem;
}
footer .links a:hover {
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
}
footer .credit {
  font-size: 1.2rem;
  margin-top: 4rem;
  padding: 0.5rem;
}
footer .credit a {
  color: var(--accent);
  font-weight: 700;
} 

/* Modal Box */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}
.modal-container {
  position: relative;
  background-color: #fefefe;
  color: var(--bg);
  margin: 15% auto;
  padding: 1.2rem;
  border: 1px solid #666;
  width: 80%;
  animation: animateModal 0.5s ease-out;
}

/* Modal Animation */
@keyframes animateModal {
  from {
    opacity: 0;
    top: -300px;
  }
  to {
    opacity: 1;
    top: 0;
  }
}

.modal-container .close-icon {
  position: absolute;
  right: 1rem;
}
.modal-content {
  display: flex;
  flex-wrap: nowrap;
}
.modal-content img {
  height: 20rem;
  margin-right: 2rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
}
.modal-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 1.2rem;
}
.modal-content a {
  display: flex;
  gap: 1rem;
  font-size: 1rem;
  width: 12rem;
  background-color: var(--primary);
  color: #fff;
  margin-top: 2rem;
  padding: 1rem 3rem;
}

.modal-content .product-price {
  font-size: 1.6rem;
  font-weight: 500;
  padding-top: 0.5rem;
}

/* Media Quaries: */
/* Laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}
/* Tablet */
@media (max-width: 768px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: rgba(251, 248, 248, 0.8);
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }
  .navbar .navbar-nav.active {
    right: 0;
  }
  .navbar .navbar-nav a {
    color: var(--bg);
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
  }
  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }
  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.2);
  }

  .navbar .search-form {
    width: 70%;
    right: 7%;
  }

  .about .row {
    flex-wrap: wrap;
  }
  .about .row .about-img {
    height: 24rem;
    object-fit: cover;
    object-position: center;
  }
  .about .row .content {
    padding: 0;
  }

  .menu .row .menu-card {
    width: 100%;
  }

  .contact .row {
    flex-wrap: wrap;
  }
  .contact .row .map {
    height: 30rem;
  }
  .contact .row form {
    padding-top: 0;
  }

  .modal-content {
    flex-wrap: wrap;
  }


}
/* Mobile Phone */
@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
}
