.section .title {
  font-weight: 700;
  margin: 0 0 14px;
}
.section .subtitle {
  color: var(--barik-600);
  margin: 0 0 18px;
  text-align: center;
}

/* ====== FLEX WRAPPER ====== */
.packages {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 18px; /* konsisten dgn project */
}

/* kartu responsif berbasis flex */
.pkg-card {
  background: var(--card-bg-transparent);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--ring);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex: 1 1 220px; /* basis min 220px */
  max-width: 280px; /* agar 4 kolom di desktop */
}
.pkg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* gambar/ilustrasi judul paket */
.pkg-thumb {
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
}

/* ornamen sudut sederhana */
.pkg-thumb:before,
.pkg-thumb:after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.35);
}
.pkg-thumb:before {
  left: -18px;
  top: -18px;
}
.pkg-thumb:after {
  right: -18px;
  bottom: -18px;
}

/* badan kartu */
.pkg-body {
  padding: 12px 14px 14px;
  text-align: center;
}
.pkg-title {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.pkg-chip {
  display: inline-block;
  font-size: 13px;
  line-height: 1.2;
  background: var(--barik-200);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  min-width: 80%;
  max-width: 240px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* warna varian */
.bg-anti-gtm {
  background: #f0a12a;
}
.bg-bb {
  background: #9a5f40;
}
.bg-mpasi {
  background: #4d73b3;
}
.bg-immune {
  background: #23a0a0;
}

/* responsif halus */
@media (min-width: 480px) {
  .packages {
    gap: 20px;
  }
}
@media (min-width: 992px) {
  .pkg-card {
    flex: 0 1 23%;
  } /* sekitar 4 kolom */
}

@media (max-width: 767px) {
  .pkg-card {
    flex: 0 1 calc(50% - 12px); /* 2 kolom, beri jarak sesuai gap */
    max-width: calc(50% - 12px);
  }
}
.bundle-picker {
  background: #f7f1ec;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 10px 24px rgba(165, 100, 46, 0.07);
  overflow: hidden;
  border: 1px solid #e6dbd3;
  margin-top: 16px;
}
.slot {
  padding: 16px 12px 6px;
}
.slot + .slot {
  border-top: 1px solid #e6dbd3;
}
.slot h4 {
  margin: 0 0 10px 4px;
  font-size: 14px;
  font-weight: 700;
  color: #6e5b4f;
}
.item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.item + .item {
  border-top: 1px dashed #e6dbd3;
}
.item.added {
  background: #fff3e8;
  border: 1px solid #a5642e;
}
.thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #eee;
  border: 1px solid #eaeaea;
}
.meta .name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.meta .price {
  font-size: 13px;
  color: #6e5b4f;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e6dbd3;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}
.add-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: none;
  background: #a5642e;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
.add-btn:hover {
  background: #8b4f1c;
}
.add-btn:active {
  transform: translateY(1px);
}
.item.added .icon-btn {
  display: none;
}
.item.added .add-btn {
  background: #c0392b;
}
.item.added .add-btn:hover {
  background: #a93226;
}
.item.added .add-btn svg path:first-child {
  display: none;
}
.item.added .add-btn svg path:last-child {
  display: none;
}
.item.added .add-btn::before {
  content: "✕";
  font-size: 18px;
}
.footer {
  padding: 14px;
}
.cta {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid #e6dbd3;
  background: #e8d9cd;
  color: #7b5d49;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
  cursor: not-allowed;
  opacity: 0.85;
}
.cta.ready {
  background: #a5642e;
  color: #fff;
  border-color: #a5642e;
  cursor: pointer;
  opacity: 1;
}
@media (max-width: 520px) {
  .item {
    grid-template-columns: 52px 1fr auto;
  }
  .thumb {
    width: 52px;
    height: 52px;
  }
  .meta .name {
    font-size: 14px;
  }
}
.pkg-main {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  color: #fff;
  border-radius: 6px;
  margin-bottom: 12px;
}
.pkg-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pkg-thumbs .pkg-thumb-item {
  width: 80px;
  height: 80px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fafafa;
}
.pkg-thumbs .pkg-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-packages .section-title {
  color: var(--barik-800);
}
