/* Mendaftarkan font Poppins Regular */
@font-face {
  font-family: "MyPoppins";
  src:
    url("../fonts/Poppins-Medium.woff2") format("woff2"),
    url("../fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
/* Mendaftarkan font Poppins Bold */
@font-face {
  font-family: "MyPoppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}
.dropdown {
  position: relative;
  z-index: 9999;
}


.row[data-aos] {
  position: relative;
  z-index: auto; /* allow dropdowns appended to body to overlay AOS-animated rows */
}

body {
  font-family: "MyPoppins", sans-serif;
  background: rgba(165, 124, 95, 0.1);
}

.bg-nav {
  backdrop-filter: blur(10px);
}

.bg-title {
  background: rgba(165, 124, 95, 0.2);
}
#pop-menu {
  background: #f6f2ef;
}
.carousel-inner {
  background: linear-gradient(to right, #000000, #434343);
}

.bg-card-category {
  background: linear-gradient(315deg, #000000, #434343);
  border: 1px solid #f2e8d7;
  color: #fff;
}

/* Mengecilkan ikon panah */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 1rem; /* Defaultnya sekitar 2.5rem */
  height: 1rem;
  border: 1px solid white; /* Menambahkan border putih */
  border-radius: 50%;
}

/* Jika ingin mempersempit area klik tombol (opsional) */
.carousel-control-prev,
.carousel-control-next {
  width: 13%; /* Defaultnya 15%, diubah jadi 5% agar lebih ramping ke samping */
}

.capt-title {
  font-size: 14px;
}
.capt-desc {
  font-size: 10px;
}



.dropdown-kategori-products .dropdown-menu.show {
  display: block !important;
}

.dropdown-toggle::after {
  display: none;
}

/* DESKTOP: Dropdown ke atas */
@media (min-width: 992px) {
  .dropdown-kategori-products .dropdown-menu {
    bottom: 100% !important;
    top: auto !important;
    margin-bottom: 8px;
  }
}

/* MOBILE: Dropdown ke bawah, produk turun */
@media (max-width: 991px) {
  .dropdown-kategori-products .dropdown-menu {
    top: 100% !important;
    bottom: auto !important;
    margin-top: 8px;
  }
  
  #product {
    margin-top: 250px;
  }
}
.capt-desc {
  font-size: 10px;
}

.card-category {
  height: 150px;
  overflow: hidden;
  border: 1px solid #fff;
}
.card-category .card-img {
  height: 150px;
}

.card-category {
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.card-category img {
  transition: 0.3s ease;
}

.card-category:hover img {
  transform: scale(1.05);
  opacity: 0.7;
}

.wa-floating-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  padding: 24px 26px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1040;
  transition: all 0.3s ease-in-out;
  animation: pulse-green 2s infinite;
}

.wa-floating-btn:hover {
  background-color: #128c7e;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.3);
}

.wa-floating-btn i {
  font-size: 42px;
}

/* .modal {
  max-height: 80%;
} */

/* Responsif: Jadi bulat di layar kecil/HP */
@media (max-width: 576px) {
  .wa-floating-btn {
    padding: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }
}

/* ===== DESKTOP STYLE ===== */
@media (min-width: 992px) {
  .capt-title {
    font-size: 54px;
  }
  .capt-desc {
    font-size: 24px;
  }
  /* Mengecilkan ikon panah */
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    padding: 16px;
  }
  .carousel-control-prev,
  .carousel-control-next {
    width: 6%;
  }
  .modal {
    max-height: 100%;
  }
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Image helpers: ensure consistent sizing and cover behaviour */
/* .object-fit-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
} */

/* .img-preview {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
} */

/* Stronger selector for about-section icon wrapper to prevent accidental overflow */
.card .p-3.bg-title .img-preview,
.p-3.bg-title img.img-preview {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  overflow: hidden;
}

/* Category card images */
.card-category {
  height: 150px;
  overflow: hidden;
}
.card-category .card-img {
  height: 100%;
}
.card-category .card-img.object-fit-cover {
  height: 100%;
  object-fit: cover;
}

/* Product thumbnail sizing inside product cards */
.card .card-body img.w-100 {
  height: 160px;
  object-fit: cover;
}

/* Admin mobile product card styling (improve appearance on phones) */
.admin-mobile-product-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
.admin-mobile-product-card .product-title {
  font-size: 0.95rem;
}
.admin-mobile-product-card .ratio img.object-fit-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-mobile-product-card .card-body { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.admin-mobile-product-card .btn { padding-top: 0.45rem; padding-bottom: 0.45rem; }

@media (max-width: 576px) {
  .card-category { height: 130px; }
  .card-category .card-img { height: 130px; }
  .card .card-body img.w-100 { height: 120px; }
  .img-preview { width: 40px; height: 40px; }
}


#product {
  position: relative;
  z-index: auto; /* remove stacking priority so global dropdown can appear above */
}
