/* --- BASE STYLES --- */

:root {
  --primary-yellow: #ffffff;
  --text-dark: #121643;
  --text-grey: #777;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f6f8;
  padding-top: 80px;
  padding-bottom: 80px;
}

.navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar-brand {
  font-weight: 700;
  color: var(--text-dark);
}

/* --- TABS --- */

.category-wrapper {
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 10px;
  margin-bottom: 20px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-wrapper::-webkit-scrollbar {
  display: none;
}

.nav-pills .nav-link {
  display: inline-block;
  color: var(--text-grey);
  background: white;
  border: 1px solid #eee;
  border-radius: 16px;
  margin-right: 10px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-pills .nav-link.active, .nav-pills .nav-link:hover {
  background-color: #24285b;
  color: var(--primary-yellow);
  border-color: var(--text-dark);
}

/* --- PRODUCT CARD --- */

.product-card {
  position: relative;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 40%);
  border: 2px solid var(--primary-yellow);
  border-radius: 16px;
  padding: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255,215,0,0.15);
}

.card-top-deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(180deg, rgba(255,215,0,0.15) 0%, rgba(255,255,255,0) 100%);
  z-index: 0;
  border-radius: 15px 15px 0 0;
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  z-index: 1;
  position: relative;
}

.icon-wrapper img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.p-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px;
  z-index: 1;
  position: relative;
}

.p-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  z-index: 1;
  position: relative;
}

.badge-status {
  display: inline-block;
  background: var(--primary-yellow);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
  z-index: 1;
  position: relative;
}

.badge-status.habis {
  background: #ffebee;
  color: #c62828;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 9px 0;
  flex-grow: 1;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2px;
  font-size: 14px;
  color: #555;
}

.feature-list li i {
  color: #28a745;
  margin-right: 8px;
  margin-top: 3px;
}

.btn-pilih {
  background: var(--primary-yellow);
  border: none;
  color: #222;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px;
  width: 100%;
  transition: 0.2s;
}

.btn-pilih:hover {
  background: #ffca28;
  transform: translateY(-2px);
}

.btn-pilih:disabled {
  background: #a20000;
  color: #ffffff;
  cursor: not-allowed;
  transform: none;
}

.btn-wa-direct {
  background: #009806;
  border-radius: 16px;
  width: 60px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 25px;
  text-decoration: none;
  transition: 0.2s;
  border-color: #009806;
  border-width: 2px;
  border-style: solid;
}

.btn-wa-direct:hover {
  color: #f0f2f5;
  background: #007e05;
  border-color: #007e05;
}

/* --- CART & CHECKOUT --- */

.floating-cart {
  position: fixed;
  bottom: 18px;
  right: 16px;
  width: 50px;
  height: 50px;
  background: #24285b;
  color: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 2;
  padding: 0px;
}

.cart-badge {
  position: absolute;
  background: #ff3b30;
  color: white;
  top: -12px;
  right: -11px;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-box {
  background: #eaeaea;
  padding: 15px;
  margin-bottom: 15px;
}

.checkout-box h6 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.checkout-box label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.form-control {
  border-radius: 8px;
  padding: 10px;
  font-size: 0.9rem;
}

.total-area {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.total-final {
  font-size: 1.1rem;
  font-weight: 800;
  border-top: 1px dashed #ccc;
  padding-top: 10px;
  margin-top: 5px;
}

.text-discount {
  color: #28a745;
}

/* Animasi Tombol Voucher */

.btn-anim {
  transition: all 0.2s ease;
}

.btn-anim:active {
  transform: scale(0.90);
}

/* Loading Spinner di dalam tombol */

.btn-loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

