/* ==================================================================
   1. GLOBAL & VARIABLES
   ================================================================== */
:root {
  --bs-primary: #008ac0; /* Biru Artefax */
  --bs-secondary: #ffb400; /* Oranye Artefax (Untuk Harga) */
  --bs-dark: #1a1a1a;
  --bs-light: #f4f7f9;

  /* Shadow Variables */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);

  /* Text Shadow untuk Hero Header */
  --text-shadow-hero: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

body {
  font-family: "Open Sans", sans-serif;
  color: #444;
  background-color: var(--bs-light);
  padding-top: 90px !important; /* Jarak aman navbar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
}


.text-primary {
  color: var(--bs-primary) !important;
}

/* Spinner Loading */
#spinner {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out;
  z-index: 99999;
}
#spinner:not(.show) {
  opacity: 0;
  visibility: hidden;
}

/* ==================================================================
   2. NAVBAR & HEADER
   ================================================================== */
.fixed-top {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1030;
}
.navbar {
  padding: 0;
  min-height: 90px;
}
.navbar .nav-link {
  padding: 30px 15px;
  font-weight: 700;
  color: var(--bs-dark);
  text-transform: uppercase;
  font-size: 14px;
  transition: 0.3s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--bs-primary);
}

/* Icon Cart & User Wrapper */
.nav-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 25px;
}
.nav-icon-btn {
  color: var(--bs-primary) !important;
  font-size: 1.8rem;
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  width: 40px;
  height: 40px;
}
.nav-icon-btn:hover {
  color: var(--bs-secondary) !important;
  transform: translateY(-2px);
}

/* Badge Keranjang */
.cart-badge {
  position: absolute;
  top: -2px;
  right: -5px;
  background-color: #dc3545;
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* ==================================================================
   FIX HEADER & BUTTONS (Tambahkan/Timpa di style.css)
   ================================================================== */

/* 1. PERBAIKAN HEADER (Agar Gambar Muncul) */
.page-header {
  background: linear-gradient(rgba(1, 28, 41, 0.8), rgba(0, 138, 192, 0.8)), url("../img/foto.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  /* Agar header naik ke belakang navbar */
  margin-top: -90px !important;

  /* Padding diperbesar agar tulisan turun ke tengah & background terlihat */
  padding-top: 12rem !important;
  padding-bottom: 6rem !important;

  width: 100%;
  color: white;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 3rem;
}
/* --- FIX HEADER SHOP --- */
.page-header {
  background: linear-gradient(rgba(1, 28, 41, 0.8), rgba(0, 138, 192, 0.8)), url("../img/foto.jpg");
  background-position: center center;
  background-size: cover;
  padding: 10rem 0 6rem 0 !important; /* Padding besar agar gambar terlihat */
  margin-top: -90px !important; /* Tarik ke atas menutupi navbar */
  margin-bottom: 3rem;
  color: white;
}
/* ==========================================================
   FIX TAMPILAN SHOP (LURUSKAN & BIRUKAN)
   ========================================================== */

/* 1. UBAH SIDEBAR KATEGORI JADI BIRU (Hapus Hijau) */
.list-group-item.active {
  background-color: var(--bs-primary) !important; /* Jadi Biru Artefax */
  border-color: var(--bs-primary) !important;
  color: #fff !important;
  font-weight: 700;
}
.list-group-item {
  border-left: 3px solid transparent; /* Biar rapi */
}
.list-group-item:hover {
  border-left-color: var(--bs-primary); /* Efek hover biru di kiri */
  background-color: #f8f9fa;
  color: var(--bs-primary);
}

/* 2. UBAH INPUT/TANGGAL JADI BIRU */
.form-control:focus,
.form-select:focus {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 138, 192, 0.25) !important;
}

/* 3. TOMBOL FULL BOOKED (LURUS & RAPI) */
/* Kita samakan ukurannya dengan tombol 'Pesan' tapi warnanya abu-abu */
.btn-disabled-fixed {
  background-color: #e9ecef !important; /* Background Abu */
  color: #6c757d !important; /* Teks Abu Tua */
  border: 2px solid #dee2e6 !important; /* Border Abu */

  /* Samakan dimensi dengan tombol Pesan (.btn-action) */
  border-radius: 50px;
  padding: 6px 20px;
  font-weight: 700;
  font-size: 0.9rem;

  /* Pastikan lurus */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: not-allowed;
  min-width: 100px; /* Lebar minimal agar kokoh */
}
/* ==================================================================
   3. HERO HEADER & ANIMASI
   ================================================================== */
.hero-header {
  background: linear-gradient(rgba(1, 28, 41, 0.6), rgba(0, 138, 192, 0.6)), url("../img/foto.jpg");
  background-position: center center;
  background-size: cover;
  margin-top: -90px !important;
  padding-top: 16rem !important;
  padding-bottom: 12rem !important;
  color: white;
}

/* --- ANIMASI KETIK (TYPEWRITER) --- */
.typewriter {
  display: inline-block;
  overflow: hidden; /* Menyembunyikan teks di luar batas */
  border-right: 3px solid var(--bs-secondary); /* Kursor ketik warna oranye */
  white-space: nowrap; /* Teks satu baris */
  margin: 0;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--bs-secondary); /* Warna Teks Oranye */
  text-transform: uppercase;
  font-size: 1.2rem;
  animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

/* Keyframes untuk efek mengetik */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Keyframes untuk kursor kedip */
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--bs-secondary);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: var(--text-shadow-hero);
}

/* --- SEARCH BOX SOLID (TIDAK TRANSPARAN) --- */
.search-box-hero {
  background: #ffffff; /* Latar Belakang Putih Solid */
  padding: 5px; /* Padding tipis agar rapi */
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Shadow agar kontras */
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

/* Input di dalam Search Box */
.search-box-hero input.form-control {
  border: none;
  background: transparent; /* Background input tetap transparan mengikuti parent putih */
  color: #333 !important; /* Teks Hitam agar terbaca */
  padding: 15px 20px;
  font-weight: 600;
  box-shadow: none !important; /* Hapus shadow bawaan bootstrap */
}

/* Placeholder (Teks bayangan) jadi abu-abu */
.search-box-hero input::placeholder {
  color: #999 !important;
  font-weight: 400;
}

/* Tombol Cari */
.search-box-hero .btn-search {
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 138, 192, 0.4);
}
/* ==================================================================
   4. PRODUCT CARD (MODEL PIL/LONJONG)
   ================================================================== */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  border-color: var(--bs-primary);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: #f8f9fa;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-image {
  transform: scale(1.1);
}

/* Badge Kategori (Chip Style) */
.chip-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid #eee;
  background: #fff;
  color: #666;
  margin-right: 5px;
}
.chip-category.tipe {
  color: var(--bs-primary);
  border-color: rgba(0, 138, 192, 0.3);
  background: rgba(0, 138, 192, 0.05);
}

/* Harga Oranye */
.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bs-secondary) !important;
}

/* TOMBOL SEWA (Outline, Pill, Icon) */
.btn-action {
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  background: transparent;
  border-radius: 50px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-action:hover {
  background: var(--bs-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 138, 192, 0.3);
  transform: translateY(-2px);
}

/* Badge Favorit */
.badge-fav {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

/* ==================================================================
   5. PEMBAYARAN & CHECKOUT STYLES
   ================================================================== */
.pembayaran-card {
  border: none;
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}
.pembayaran-card-header {
  background: linear-gradient(135deg, #008ac0 0%, #006b96 100%);
  padding: 25px;
  border-bottom: 5px solid var(--bs-secondary);
  color: white;
}
.info-box-blue {
  background-color: #e3f6fd;
  border: 1px solid #bce6f7;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}
.bank-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 25px;
  height: 100%;
  transition: 0.3s;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.bank-card:hover {
  border-color: var(--bs-secondary);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.total-box-green {
  background-color: #d4edda;
  border: 1px dashed #008ac0;
  color: #155724;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}
.total-nominal-red {
  font-size: 1.4rem;
  font-weight: 800;
  color: #dc3545;
}

/* Tombol Kirim Pembayaran */
.btn-kirim-pembayaran {
  background: linear-gradient(135deg, #008ac0 0%, #006b96 100%);
  color: white;
  font-weight: 700;
  padding: 16px;
  border-radius: 10px;
  border: none;
  width: 100%;
  transition: 0.3s;
  margin-top: 10px;
  box-shadow: 0 8px 20px rgba(0, 138, 192, 0.3);
}
.btn-kirim-pembayaran:hover {
  background: linear-gradient(135deg, #ffb400 0%, #f7971e 100%);
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 180, 0, 0.4);
}


/* ==================================================================
   6. FOOTER & BUTTONS GENERAL
   ================================================================== */
.btn-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
  transition: 0.3s;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 138, 192, 0.2);
}
.btn-primary:hover {
  background: #0077a3;
  border-color: #0077a3;
  transform: translateY(-2px);
}

.footer {
  background-color: var(--bs-dark) !important;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 5rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}
.footer h3 {
  color: var(--bs-primary);
  font-weight: 800;
  letter-spacing: 1px;
}
.footer .btn-social {
  margin-right: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: 0.3s;
  text-decoration: none;
}
.footer .btn-social:hover {
  color: var(--bs-primary);
  background: white;
  transform: scale(1.1);
}

/* ==================================================================
   7. RESPONSIVE MEDIA QUERIES
   ================================================================== */
@media (max-width: 991.98px) {
  /* Tablet & Mobile Menu */
  .navbar-collapse {
    background: white;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 20px 20px;
  }

  /* Hero Header Adjustment */
  .hero-header {
    padding-top: 10rem !important;
    padding-bottom: 6rem !important;
    text-align: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }

  /* Search Box Full Width */
  .search-box-hero {
    width: 100% !important;
    margin-bottom: 2rem;
  }

  /* Carousel Height Adjustment */
  .carousel-inner img {
    height: 300px !important;
  }
}

@media (max-width: 767.98px) {
  /* Mobile Phone */
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  .product-image-wrapper {
    height: 200px;
  }

  .bank-card {
    margin-bottom: 15px;
  }
  .pembayaran-card-header h4 {
    font-size: 1rem;
  }
}

/* 1. INPUT TEXT & TANGGAL (Garis Pinggir) */
.form-control:focus,
.form-control.is-valid, 
.was-validated .form-control:valid {
    border-color: #008ac0 !important; /* Paksa Border Biru */
    box-shadow: 0 0 0 0.25rem rgba(0, 138, 192, 0.25) !important; /* Glow Biru */
    background-image: none !important; /* Hapus centang hijau bawaan validasi */
}

/* 2. RADIO BUTTON (Bulatan Pilihan) */
.form-check-input:checked {
    background-color: #008ac0 !important; /* Isi Biru */
    border-color: #008ac0 !important; /* Garis Biru */
}

/* Radio button saat valid (biasanya jadi hijau, kita paksa biru) */
.form-check-input.is-valid:checked,
.was-validated .form-check-input:valid:checked {
    background-color: #008ac0 !important;
    border-color: #008ac0 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 138, 192, 0.25) !important; 
}

/* 3. PERBAIKAN IKON KALENDER (Agar tidak kecil & warna biru) */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    /* Filter warna hitam jadi Biru Artefax */
    filter: invert(43%) sepia(68%) saturate(1600%) hue-rotate(168deg) brightness(95%) contrast(101%);
    cursor: pointer;
    width: 20px;   /* Ukuran pas */
    height: 20px;  /* Ukuran pas */
    margin-right: 5px;
}