/* ======================= */
/*       VARIABEL WARNA   */
/* ======================= */
:root {
  --primary: #F48FB1;
  --accent: #FFCDD2;
  --light: #FFF0F5;
  --dark: #212121;
}

/* ======================= */
/*       BODY & TEXT       */
/* ======================= */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light);
  color: var(--dark);
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
}

/* ======================= */
/*         NAVBAR          */
/* ======================= */
.navbar {
  background-color: var(--primary);
  transition: 0.3s;
}

.navbar-brand img {
  height: 40px;
}

.navbar-brand strong {
  font-size: 1.2rem;
  color: #fff;
}

.nav-link {
  color: white !important;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent) !important;
}

/* ======================= */
/*         BUTTONS         */
/* ======================= */
.btn.warna1 {
  background-color: var(--primary);
  color: white;
  border: none;
  transition: 0.3s;
}

.btn.warna1:hover {
  background-color: var(--accent);
  color: var(--dark);
}

.btn-outline-warning {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-warning:hover {
  background-color: var(--primary);
  color: white;
}

/* ======================= */
/*         BANNER          */
/* ======================= */
.banner,
.banner2 {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../image/banner2.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Banner pakai padding bukan vh — stabil di semua zoom level */
.banner {
  padding-top: 22%;
  padding-bottom: 3%;
  padding-left: 16px;
  padding-right: 16px;
}

.banner2 {
  min-height: 200px;
  height: 45vh;
}

/* Tablet (max 992px) */
@media (max-width: 992px) {
  .banner {
    padding-top: 20%;
    padding-bottom: 4%;
  }
  .banner2 { height: 35vh; min-height: 160px; }
}

/* Mobile (max 576px) */
@media (max-width: 576px) {
  .banner {
    padding-top: 28%;
    padding-bottom: 5%;
  }
  .banner2 { height: 30vh; min-height: 130px; }
  .input-group.input-group-lg { flex-direction: column; gap: 10px; }
  .input-group-lg input,
  .input-group-lg button { width: 100%; font-size: 1rem; }
}

/* ======================= */
/*      PRODUK STYLING     */
/* ======================= */
.image-box {
  height: 250px;
  overflow: hidden;       
  border-radius: 12px;
}

.image-box img {
  width: 100%;
  height: 100%;           
  object-fit: cover;      
}
.card-title {
  min-height: 40px;
}
.card-img-top {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
  transition: transform 0.3s;
}
.img-populer {
  height: 250px;
  object-fit: cover;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.01);
  transition: all 0.3s ease;
}

.card-body {
  background-color: var(--light);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.text-harga {
  font-size: 20px;
  color: #EC407A;
  font-weight: bold;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.card-text {
  color: #555;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
}

/* ======================= */
/*     KATEGORI STYLING    */
/* ======================= */
.kategori-card {
  width: 100%;
  height: 300px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.kategori-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s ease;
}

.kategori-card:hover img {
  transform: scale(1.1);
}

.kategori-label {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 6px 14px;
  border-radius: 6px;
  transition: 0.3s ease;
}

.kategori-label a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.kategori-label a:hover {
  color: #ffc107;
  text-decoration: underline;
}

.kategori-card:hover .kategori-label {
  background-color: #211818;
}

/* ======================= */
/*    KOMPONEN TAMBAHAN    */
/* ======================= */
.list-group a {
  text-decoration: none;
}

.bekasan-terkait-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .bekasan-terkait-img {
    height: auto;
  }

  .bekasan-terkait-img-wrapper {
    margin-bottom: 15px;
  }
}

.content-subscribe {
  background-color: var(--primary);
}

.content-subscribe a {
  color: white;
}

.footer a:hover {
  color: var(--primary) !important;
}
/* ======================= */
/*     RESPONSIVE PRODUK DETAIL   */
/* ======================= */
@media (max-width: 768px) {
  .produk-detail-row {
    flex-direction: column;
  }

  .produk-detail-img {
    width: 100%;
    margin-bottom: 20px;
  }

.produk-detail-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

@media (max-width: 768px) {
  .produk-detail-text {
    text-align: center;
    align-items: center;
  }
}

  .produk-detail-text h1 {
    font-size: 1.5rem;
  }

  .produk-detail-text p {
    font-size: 0.95rem;
  }
}

/* ======================= */
/*   BEKASAN TERKAIT TITLE  */
/* ======================= */
.bekasan-terkait-title {
  text-align: center;
  color: #444;
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .bekasan-terkait-title {
    font-size: 1.5rem;
    margin-top: 20px;
  }
}
.footer a:hover {
  color: var(--primary) !important;
}
/*-----------------*/
/* Tombol Whatsapp */
/*-----------------*/
.btn-success {
    background-color: #25D366;
    border: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-success:hover {
    background-color: #1DA851;
    color: #fff;
}

/* =================================================== */
/*         FIX RESPONSIF MOBILE - INPUT SEARCH        */
/* =================================================== */

/* Mobile (width kecil) fix */
@media (max-width: 576px) {
  .input-group.input-group-lg {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px;
  }

  .input-group-lg input.form-control {
    width: 100% !important;
    font-size: 1rem;
    padding: 10px 14px;
    color: var(--dark) !important;
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
  }

  .input-group-lg input::placeholder {
    color: #aaa !important;
  }

  .input-group-lg button.btn {
    width: 100% !important;
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 6px;
  }
}

/* ======================= */
/*    NAVBAR PINK BUTTON   */
/* ======================= */
.btn-navbar-pink {
    border: 1.5px solid white;
    color: white !important;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s;
    text-decoration: none;
}
.btn-navbar-pink:hover {
    background-color: white;
    color: #F48FB1 !important;
}

/*-----------------*/
/*     Button      */
/*-----------------*/

.btn-back {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    border-radius: 50%;
    padding: 8px 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    color: black;
    text-decoration: none;
}

.btn-back:hover {
    background: #0d6efd;
    color: white;
}

    
        .sidebar {
            width: 250px;
            position: fixed;
            height: 100vh;
            background-color: #343a40;
            padding: 20px;
            color: white;
        }
        .sidebar a {
            color: white;
            text-decoration: none;
        }
        .sidebar .nav-link {
            margin-bottom: 10px;
        }
        .topbar {
            margin-left: 250px;
            padding: 15px 30px;
            background-color: #007bff;
            color: white;
        }


/* =========================================
   STYLE KHUSUS AKTIVITAS PENAWARAN (COMPACT & THEME MATCHING)
   ========================================= */

.card-penawar {
    background-color: #ffffff !important; 
    border: 2px solid var(--accent) !important; 
    border-radius: 12px !important; /* Ujungnya dibikin agak melengkung dikit aja */
    box-shadow: 0 4px 10px rgba(244, 143, 177, 0.15) !important; 
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-penawar:hover {
    transform: translateY(-3px);
    border-color: var(--primary) !important; 
}

/* JURUS DIET 1: Perkecil ruang kosong (padding) di dalam card */
.card-penawar .card-body {
    background-color: transparent !important;
    padding: 1rem !important; /* Asalnya p-4 (1.5rem), kita kecilin jadi 1rem */
}

/* JURUS DIET 2: Sesuaikan ukuran font & rapatkan jarak */
.card-penawar .nama-penawar {
    color: var(--dark) !important; 
    letter-spacing: 0.5px;
    font-size: 0.95rem !important; /* Font nama sedikit dikecilin */
    margin-bottom: 0.2rem !important; /* Jarak ke tanggal dirapetin */
}

.card-penawar .waktu-penawar {
    color: #888888 !important; 
    font-size: 0.8rem !important; /* Font tanggal dikecilin */
    margin-bottom: 0.8rem !important; /* Jarak ke tombol harga dirapetin */
}

/* JURUS DIET 3: Bikin tombol harga gak kegendutan */
.card-penawar .badge-harga {
    background-color: var(--primary) !important; 
    color: #ffffff !important; 
    font-size: 0.9rem !important; /* Angka harga dikecilin dikit */
    font-weight: 700 !important;
    padding: 6px 16px !important; /* Ruang kosong di dalam tombol dikurangin */
    display: inline-block !important; 
    width: auto !important;
    box-shadow: 0 3px 6px rgba(244, 143, 177, 0.4);
}

.alert-penawar {
    background-color: #ffffff !important;
    border: 2px dashed var(--primary) !important; 
    border-radius: 12px;
    max-width: 600px;
    padding: 1rem !important; /* Alert-nya juga ikut didietin */
}

.alert-penawar .ikon-kosong, 
.alert-penawar .teks-kosong {
    color: var(--primary) !important;
}

/* =========================================
   STYLE TOMBOL DROPDOWN PENAWARAN (HOVER & ACTIVE)
   ========================================= */
.btn-toggle-penawaran {
    background-color: var(--light);
    color: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 25px;
    transition: all 0.3s ease; /* Bikin transisi warnanya smooth */
}

/* Pas kursor lewat (Hover) */
.btn-toggle-penawaran:hover {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(244, 143, 177, 0.4) !important;
    transform: translateY(-2px); /* Tombol kerasa ngangkat dikit */
}

/* Pas tombol diklik (Active / Kepencet) */
.btn-toggle-penawaran:active {
    transform: translateY(2px); /* Tombol kerasa mendelep ke dalem */
    box-shadow: 0 2px 4px rgba(244, 143, 177, 0.2) !important;
}

/* Fix biar pas nge-klik nggak ada kotak outline biru bawaan browser */
.btn-toggle-penawaran:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(244, 143, 177, 0.25);
}