:root {
  --primary: #b6895b;
  --bg: black;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

/* Tambahan untuk memastikan seluruh body dan komponen lainnya hitam */

body,
.card-body,
.modal-container,
.banner-produk,
.list-group,
.card,
.about .row .content,
.contact .row form,
.contact .row .map {
  background-color: black !important;
  color: white !important;
}

/* Perbaikan teks yang sebelumnya tidak terlihat di background gelap */
.card-body h4,
.card-body p,
.card-body .href a {
  color: white !important;
}

body {
  font-family: "poppins", sans-serif;
  background-color: black;
  color: #fff;
}

/* Navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 7%;
  background-color: rgba(1, 1, 1, 0.8);
  border-bottom: 1px solid #513c28;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  font-style: italic;
  text-decoration: underline;
}

.navbar .navbar-logo span {
  color: var(--primary);
}

.navbar .navbar-nav {
  display: flex;
  flex-direction: row;
}

.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 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);
  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.2rem;
}

.navbar .navbar-extra a:hover {
  color: var(--primary);
}

#hamburger-menu {
  display: none;
}

/* shoping cart */
.shopping-cart {
  position: absolute;
  top: 100%;
  right: -100%;
  height: 100vh;
  width: 35rem;
  padding: 0 1.5rem;
  background-color: #fff;
  color: var(--bg);
  transition: 0.3s;
}

.shopping-cart.active {
  right: 0;
}

.shopping-cart .cart {
  overflow-y: scroll;
  height: 15%;
  margin: 2rem 0 0 0;
}

.shopping-cart .cart .cart-item {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #333;
  position: relative;
}

.shopping-cart .cart .item-image {
  width: 15%;
  height: 100%;
}

.shopping-cart .cart .item-image img {
  width: 100%;
  height: 100%;
}

.shopping-cart .cart-footer .cart-chekcout {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.shopping-cart .cart-footer .cart-chekcout button {
  background-color: var(--primary);
}

.shopping-cart img {
  height: 6rem;
  border-radius: 10%;
}

.shopping-cart h3 {
  font-size: 1.6rem;
  padding-bottom: 0.5rem;
}

.shopping-cart .item-price {
  font-size: 1.2rem;
}

.shopping-cart .remove-item {
  position: absolute;
  right: 1rem;
  cursor: pointer;
}

.shopping-cart .remove-item:hover {
  color: var(--primary);
}
/* Navbar Search form */
.navbar .search-form {
  position: absolute;
  top: 100%;
  right: 7%;
  background-color: #fff;
  width: 40.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  transform: scaleY(0);
  transform-origin: top;
  transition: 0.3s;
}

.navbar .search-form.active {
  transform: scaleY(1);
}

.navbar .search-form input {
  height: 100%;
  width: 100%;
  font-size: 1.6rem;
  color: var(--bg);
  padding: 1rem;
}

.navbar .search-form label {
  cursor: pointer;
  font-size: 2rem;
  margin-right: 1.5rem;
  color: var(--bg);
}

/* Hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("../image/bckg4.jpg");
  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) 50%
  );
}

.hero .content {
  padding: 1.4rem 7%;
  max-width: 60rem;
}
.hero .content h1 {
  font-size: 3.3rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  line-height: 1.2;
  font-weight: 700;
}

.hero .content h1 span {
  color: var(--primary);
}

.hero .content p {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  line-height: 1.5;
  font-weight: 100;
  text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
  color: #fff;
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: #fff;
  background-color: var(--primary);
  border-radius: 0.5rem;
  box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
}

/* About Section */
.about,
.menu,
.products,
.contact {
  padding: 8rem 7% 1.4rem;
}

.about h2,
.menu h2,
.products h2,
.contact h2 {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 3rem;
}

.about h2 span,
.menu h2 span,
.products h2 span,
.contact h2 span {
  color: var(--primary);
}

.about .row {
  display: flex;
}

.about .row .about-img {
  flex: 1 1 35rem;
}

.about .row .about-img img {
  width: 100%;
}

.about .row .content {
  flex: 1 1 45rem;
  padding: 0 1rem;
}

.about .row .content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about .row .content p {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  font-weight: 100;
  line-height: 1.6;
}

/* Menu Section */
.menu h2,
.contact h2 {
  margin-bottom: 1rem;
}

.menu p,
.contact p {
  text-align: center;
  max-width: 30rem;
  margin: auto;
  font-weight: 100;
  line-height: 1.6;
}

.menu .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem; /* ini jarak antar kolom & baris */
  justify-items: center;
  margin-top: 3rem;
}

.menu .row .menu-card {
  text-align: center;
}

.menu .row .menu-card img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.menu .row .menu-card .menu-card-title {
  margin-top: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.menu-img {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto; /* untuk membuatnya berada di tengah */
  border-radius: 4px;
}

/* products Sections */

.products .product-card {
  text-align: center;
  border: 1px solid #666;
  padding: 3rem; /* lebih besar */
  position: relative;
  overflow: hidden;
  background-color: var(--bg); /* opsional biar lebih rapi */
  border-radius: 10px; /* opsional biar sudut kotak lebih halus */
}

.products .product-card img {
  width: 100%; /* diperkecil gambarnya */
  height: auto;
  margin-top: 3rem;
  transition: 0.3s;
  margin-bottom: 1rem;
}

.products .product-icons {
  position: absolute;
  top: 1rem; /* di dalam kotak, di atas gambar */
  left: 50%;
  transform: translateX(-50%); /* bener2 center */
  display: flex;
  gap: 1rem;
  opacity: 1; /* langsung kelihatan tanpa hover */
  z-index: 2; /* supaya di atas gambar */
}

.products .product-icons a {
  width: 3rem;
  height: 3rem;
  background-color: black;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  transition: 0.3s;
  border: 1px solid white;
}

.products .product-icons a:hover {
  background-color: var(--primary);
  border: 1px solid var(--primary);
}

.products .product-card:hover img {
  filter: brightness(0.8);
}

.products p {
  margin-bottom: 2rem;
  text-align: center;
}

.row {
  display: flex;
  justify-content: space-between; /* Atau justify-content: center; untuk rata tengah */
  gap: 10px; /* Opsional, untuk memberi jarak antar produk */
}

.product .product-content h3 {
  font-size: 2rem;
}

.products .product-stars {
  font-size: 1rem;
  padding: 0.8rem;
  gap: 0.5rem;
  color: var(--primary);
}

/* ini buat ubah rating bintangnya nnti di coppy di produk kedua dihtml lagi */
.products .product-stars .star-full {
  fill: var(--primary);
}

.products .product-price {
  font-size: 1.3rem;
  font-weight: bold;
}

.products .product-card .product-content {
  display: flex;
  flex-direction: column; /* Menyusun elemen secara vertikal */
  align-items: center; /* Membuat elemen berada di tengah */
  gap: 0.5rem; /* Menambah jarak antar elemen */
}

/* Contact section */
.contact .row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.contact .row .map {
  flex: 1 1 45rem;
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.contact .map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact .row form {
  flex: 1 1 45rem;
  background-color: #111;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.5rem;
}

.contact .row form .input-group {
  display: flex;
  align-items: center;
  background-color: var(--bg);
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
}

.contact .row form .input-group input {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  background: none;
  color: #fff;
  border: none;
}

.btn-kirim {
  background-color: #b6895b; /* warna coklat */
  color: white; /* warna teks */
  border: none;
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  width: fit-content; /* ← ini bikin lebarnya pas sama isi tombol */
  align-self: center;
}

.btn-kirim:hover {
  background-color: #a3784f;
}

/* footer */
footer {
  background-color: #b6895b; /* warna coklat footer */
  text-align: center;
  padding: 1rem 0rem 3rem;
  font-size: 0.3rem;
  color: white;
  margin-top: 3rem;
}

footer .socials {
  margin-bottom: 0.5rem;
  padding: 1rem 0;
}

footer .socials a {
  color: white;
  margin: 1rem;
}

footer .socials a:hover,
footer .links a:hover {
  color: var(--bg);
  transform: scale(1.1);
}

footer .links {
  margin-bottom: 1.5rem;
}

footer .links a {
  color: white;
  margin: 0 1rem;
  font-size: 1.2rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

footer .links a:hover {
  text-decoration: underline;
}

footer .credit {
  margin-top: 1rem;
  font-size: 1rem;
}

footer .credit a {
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
}

/* Modal Box */
/* Item Detail */

/* Media Queries */

/* Laptop */
@media (max-width: 1024px) {
  .navbar .navbar-logo {
    font-size: 2rem;
  }

  .navbar .navbar-nav a {
    font-size: 0.9rem;
    margin: 0 0.5rem;
  }

  .navbar .navbar-extra a {
    font-size: 1rem;
  }
}

.modal-container {
  width: 70%; /* Lebar lebih kecil untuk tablet */
}

/* Tablet */
@media (max-width: 758px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #fff;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }

  .navbar .navbar-nav.active {
    right: 0;
    flex-direction: column; /* Tambahan ini agar isi menyusun ke bawah */
    align-items: flex-start; /* Supaya teks rata kiri */
  }

  .navbar .navbar-nav a {
    color: var(--bg);
    display: block;
    margin: 1.3rem;
    padding: 0.5rem;
    font-size: 1.6rem;
  }

  .navbar .navbar-nav a::after {
    transform-origin: 0 0;
  }

  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.2);
  }

  .navbar .search-form {
    width: 90;
  }

  .about .row {
    flex-wrap: wrap;
  }

  .about .row .about-img img {
    height: 24rem;
    object-fit: cover;
    object-position: center;
  }

  .about .row .content {
    padding: 0;
  }

  .about .row .content h3 {
    margin-top: 1rem;
    font-size: 2rem;
  }

  .about .row .content p {
    font-size: 1.6rem;
  }
}
.menu p {
  font-size: 1.2rem;
}

/* Mobile Phone */
@media (max-width: 150px) {
  html {
    font-size: 20%;
  }
}
/* baner produk*/

/* Gaya umum untuk banner produk */
.banner-produk {
  position: relative;
  width: 100%;
  height: 250px;
  background: url("../image/bijikopi.avif");
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Overlay gelap agar teks lebih terbaca */
.banner-produk::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* Teks "Produk" di tengah banner */
.banner-produk h1 {
  position: relative;
  color: white;
  font-family: "Georgia", serif; /* Samakan dengan gaya "Warkop ci pioeh" */
  font-style: italic;
  font-weight: bold;
  font-size: 2.5rem;
  padding: 0 1rem;
  z-index: 1;
}

/* Responsive design */
@media (max-width: 768px) {
  .banner-produk {
    height: 200px;
  }

  .banner-produk h1 {
    font-size: 2rem;
  }
}
