/* CSS Variables untuk Dark Mode Otomatis */
:root {
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.8);
}
[data-bs-theme="dark"] {
  --card-bg: #1e293b;
  --text-main: #f8fafc;
  --glass-bg: rgba(30, 41, 59, 0.7);
}

/* Glassmorphism */
.bg-glass {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Stepper Modern */
.stepper-item {
  font-size: 0.85rem;
  font-weight: 700;
  transition: 0.3s;
}
.stepper-item.active {
  color: var(--bs-primary);
}
.stepper-item i {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 2px;
}

/* Ringkasan Bayar Stick */
.card-summary-dark {
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Button Riwayat */
.btn-history {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border: 1px dashed #0d6efd;
  font-weight: 700;
  transition: 0.3s;
}
.btn-history:hover {
  background: #0d6efd;
  color: #fff;
}

/* Catalog Horizontal Scroll */
.scroll-container {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar {
  display: none;
}

@media (max-width: 768px) {
  .stepper-item span {
    font-size: 0.7rem;
  }
  .text-gradient {
    font-size: 1.5rem;
  }
}

[data-bs-theme="dark"] .cart-item {
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}
[data-bs-theme="dark"] .btn-white {
  background-color: #2b3035;
  color: white;
  border-color: #495057;
}

/* Transisi halus saat dihover */
.cart-item-row {
  transition: all 0.2s ease-in-out;
}
.cart-item-row:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.02);
}

/* Stepper Button Style */
.btn-white {
  background: #fff;
  color: #000;
}
[data-bs-theme="dark"] .btn-white {
  background: #2b3035;
  color: #fff;
}

/* Border putus-putus untuk mobile divider */
.border-dashed {
  /* border-style: dashed !important; */
}

/* Efek Gradient untuk Harga */
.text-gradient {
  background: linear-gradient(45deg, var(--bs-primary), #6f42c1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cart-item-row {
    margin: 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: var(--bs-body-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }
}

/* 1. Base Colors & Dark Mode */
:root {
  --bg-card: #ffffff;
  --text-main: #2d3436;
  --glass-bg2: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] {
  --bg-card: #2b3035;
  --text-main: #f8fafc;
  --glass-bg2: rgba(255, 255, 255, 0.1);
}

/* 2. Glassmorphism Badge */
.bg-glass-dark {
  background: var(--glass-bg2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3. Hover Effects & Zoom */
.item-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.img-zoom {
  transition: transform 0.5s ease;
}
.item-hover:hover .img-zoom {
  transform: scale(1.1);
}

/* 4. Floating Button Animation */
.btn-add-floating {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-add-floating:hover {
  transform: scale(1.15) rotate(90deg);
}

/* 5. Mobile Adjustments */
@media (max-width: 768px) {
  .scroll-item {
    min-width: 160px !important;
    max-width: 160px !important;
  }
  .card-img-top {
    height: 120px !important;
  }
  .fw-black {
    font-size: 0.85rem;
  }
  .card-summary-dark {
    top: auto !important;
  }
}

.logo-payment {
  height: 18px;
  object-fit: contain;
  transition: 0.2s ease;
}

.logo-payment:hover {
  transform: scale(1.05);
}

.border-dashed {
  border-style: dashed !important;
}


.icon-payment-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}


.payment-method-item:hover .icon-payment-wrapper {
    background: rgba(13, 110, 253, 0.15);
    border-color: #0d6efd;
    transform: translateY(-5px);
}

.payment-method-item:hover i {
    color: #0d6efd !important;
}

.logo-payment {
    transition: all 0.3s ease;
}

.payment-method-item:hover .logo-payment {
    filter: none !important;
    opacity: 1 !important;
    transform: translateY(-5px);
}