:root {
  --customax-bg-light: #f4f7fa; /* Latar Belakang Terang Soft Gray */
  --customax-navy: #1b4375; /* Biru Navy Utama Logo */
  --customax-navy-hover: #133259; /* Biru Navy Gelap Hover */
  --customax-blue-soft: #eaf1fb; /* Biru Muda Accent Panel */
  --customax-yellow: #ffcc00; /* Kuning Emas khas Logo */
  --customax-yellow-dark: #e0b300; /* Kuning Emas Hover */
  --customax-border: #e2e8f0; /* Border Ringan */
}

/* Pastikan body dan wrapper utama fleksibel secara vertikal */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  background-color: #daeefe;
  color: #1a202c;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* 2. Navbar & Header Branding */
.navbar-customax {
  background-color: var(--customax-navy);
  border-bottom: 2px solid var(--customax-yellow);
}

.brand-text {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.brand-text .highlight-yellow {
  color: var(--customax-yellow);
}

.color-navy {
  background-color: var(--customax-navy);
}

.brand-tagline {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d0e1f9;
  margin-top: -3px;
}

/* 3. Button Customization */
.btn-yellow {
  background-color: var(--customax-yellow);
  color: #1b4375;
  font-weight: 700;
  border: none;
  transition: all 0.2s ease;
}

.btn-yellow:hover {
  background-color: var(--customax-yellow-dark);
  color: #000;
}

.btn-navy {
  background-color: var(--customax-navy);
  color: #ffffff;
  font-weight: 600;
  border: none;
}

.btn-navy:hover {
  background-color: var(--customax-navy-hover);
  color: #ffffff;
}

.btn-outline-navy {
  border: 1px solid var(--customax-navy);
  color: var(--customax-navy);
  font-weight: 600;
}

.btn-outline-navy:hover {
  background-color: var(--customax-navy);
  color: #ffffff;
}

/* 4. Product Cards & Custom Cards */
.product-card {
  background-color: #ffffff;
  border: 1px solid var(--customax-border) !important;
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--customax-navy) !important;
  box-shadow: 0 10px 22px rgba(27, 67, 117, 0.12) !important;
}

/* Membuat main memenuhi ruang kosong antara Navbar dan Footer */
main.col-lg-10 {
  display: flex;
  flex-direction: column;
  flex: 1;
}

main.col-lg-10 > .container-fluid {
  display: flex;
  flex-direction: column;
  flex: 1;
}

main.col-lg-10 > .container-fluid > .row {
  display: flex;
  flex: 1;
}

/* Memastikan card di dalam row meregang penuh ke bawah */
.card-custom {
  background-color: #ffffff;
  border: 1px solid var(--customax-border) !important;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  height: 100% !important;
  overflow: hidden;
}

.card-custom .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Styling Khusus Card Header & Step Number untuk HTO (How To Order) */
.card-header-blue {
  background-color: var(--customax-navy) !important;
  color: #ffffff !important;
  font-weight: 700;
  border-bottom: 2px solid var(--customax-yellow);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--customax-blue-soft);
  color: var(--customax-navy);
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(27, 67, 117, 0.2);
}

/* Memaksa carousel/gambar menyesuaikan sisa ruang vertikal di dalam card */
.card-custom .carousel {
  margin-top: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-custom .carousel-inner {
  height: 100%;
}

.card-custom .carousel-item,
.card-custom .carousel-item img {
  height: 100%;
  object-fit: cover;
}

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

.category-badge {
  background-color: var(--customax-blue-soft);
  color: var(--customax-navy);
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(27, 67, 117, 0.15);
}

.product-title {
  color: #1a202c;
  font-weight: 700;
}

.product-price {
  color: #c5221f;
  font-weight: 800;
}

/* 5. Sidebar Customization */
.sidebar-card {
  background-color: #ffffff;
  border: 1px solid var(--customax-border);
}

.sidebar-link {
  color: #4a5568;
  text-decoration: none;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 600;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
  background-color: var(--customax-blue-soft);
  color: var(--customax-navy);
}

.sidebar-submenu {
  padding-left: 1rem;
}

.sidebar-sublink {
  color: #718096;
  text-decoration: none;
  padding: 6px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  font-size: 0.875rem;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.sidebar-sublink:hover {
  background-color: #edf2f7;
  color: var(--customax-navy);
}

/* Rotasi Panah Submenu */
.sidebar-link[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.sidebar-link .bi-chevron-down {
  transition: transform 0.2s ease;
}

/* 6. Floating Cart Dropdown */
.cart-dropdown-menu {
  width: 280px;
  max-width: 90vw;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid var(--customax-border);
  background-color: #ffffff;
}

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

.cart-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--customax-border);
}

.badge-cart-count {
  background-color: var(--customax-yellow) !important;
  color: #1b4375 !important;
  font-weight: 800;
}

/* 7. Pagination Light */
.pagination .page-link {
  background-color: #ffffff;
  color: var(--customax-navy);
  border: 1px solid var(--customax-border);
  border-radius: 8px;
  margin: 0 2px;
}

.pagination .page-item.active .page-link {
  background-color: var(--customax-navy);
  border-color: var(--customax-navy);
  color: #ffffff;
  font-weight: bold;
}

.pagination .page-link:hover {
  background-color: var(--customax-blue-soft);
  color: var(--customax-navy);
}

/* Thumbnail dengan Rasio Presisi 1:1 */
.thumb-img {
  width: 70px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.thumb-img:hover,
.thumb-img.active {
  border-color: var(--customax-navy);
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.05);
}