/* ═══════════════════════════════════════════════════════════════
   PRODUCT B2B — SLIDER
   File: public/css/product_b2b.css
═══════════════════════════════════════════════════════════════ */

#product-b2b {
  background: linear-gradient(160deg, #1a0509 0%, #2d0812 55%, #1a0509 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
#product-b2b::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── HEADER ── */
.pb2b-header {
  text-align: center;
  padding: 0 6%;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}
.pb2b-eyebrow {
  display: inline-block;
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #f5d27a;
  border: 1px solid rgba(245,210,122,.35);
  border-radius: 30px;
  padding: 5px 18px;
  margin-bottom: 16px;
}
.pb2b-main-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
}
.pb2b-main-title span { color: #f5d27a; }
.pb2b-main-desc {
  color: rgba(255,255,255,.45);
  font-size: .9rem;
}

/* ── SLIDER WRAP ── */
.pb2b-slider-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 64px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* ── TRACK OUTER (clips overflow) ── */
.pb2b-track-outer {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
}

/* ── TRACK ── */
.pb2b-track {
  display: flex;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

/* ── SLIDE ── */
.pb2b-slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
}

/* ── CARD ── */
.pb2b-card {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  /* backdrop-filter dihapus — berat di Android, ganti shadow lebih dalam */
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  min-height: 420px;
  --accent: #f5d27a;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

/* ── IMAGE SIDE ── */
.pb2b-img-wrap {
  position: relative;
  width: 42%;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(0,0,0,.3);
}
.pb2b-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s ease;
}
.pb2b-card:hover .pb2b-img { transform: scale(1.04); }

.pb2b-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 50%, rgba(15,3,8,.88) 100%);
  pointer-events: none;
}

/* Section tag pojok kiri atas */
.pb2b-section-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #f5d27a;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(245,210,122,.3);
  border-radius: 20px;
  padding: 4px 13px;
}

/* Badge pojok kiri bawah */
.pb2b-img-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(10,3,6,.85);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  /* backdrop-filter dihapus */
  max-width: 230px;
}
.pb2b-img-badge__icon { font-size: 1.3rem; flex-shrink: 0; }
.pb2b-img-badge__title { font-size: .72rem; font-weight: 600; color: #f5d27a; margin-bottom: 2px; }
.pb2b-img-badge__desc  { font-size: .66rem; color: rgba(255,255,255,.55); line-height: 1.45; }

/* ── INFO SIDE ── */
.pb2b-info {
  flex: 1;
  min-width: 0;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pb2b-card-tag {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 4px 13px;
  margin-bottom: 14px;
  width: fit-content;
}

.pb2b-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 6px;
}

.pb2b-subtitle {
  font-size: .88rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.pb2b-desc {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 480px;
}

/* ── FEATURES ── */
.pb2b-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 26px;
  padding: 16px;
  background: rgba(0,0,0,.2);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
}
.pb2b-feat { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.pb2b-feat__icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.pb2b-feat__label { font-size: .64rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .04em; }
.pb2b-feat__value { font-size: .78rem; color: rgba(255,255,255,.85); font-weight: 600; line-height: 1.3; }

/* ── BUTTONS ── */
.pb2b-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

.pb2b-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  min-width: 170px;
  text-align: center;
}
.pb2b-btn:hover { transform: translateY(-2px); }
.pb2b-btn__label { font-size: .88rem; font-weight: 600; line-height: 1.3; display: block; }
.pb2b-btn__sub   { font-size: .68rem; opacity: .72; display: block; margin-top: 2px; }

.pb2b-btn--primary {
  background: linear-gradient(135deg, #d4af6a, #f5d27a);
  color: #1a0509;
  box-shadow: 0 6px 24px rgba(212,175,106,.35);
}
.pb2b-btn--primary:hover { box-shadow: 0 10px 36px rgba(212,175,106,.55); }

.pb2b-btn--secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.pb2b-btn--secondary:hover { background: rgba(255,255,255,.14); }

.pb2b-note { font-size: .72rem; color: rgba(255,255,255,.38); }

/* ── NAV BUTTONS ── */
.pb2b-nav {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .2s;
  z-index: 2;
  flex-shrink: 0;
}
.pb2b-nav--prev { margin-right: 12px; }
.pb2b-nav--next { margin-left: 12px; }
.pb2b-nav:hover {
  background: rgba(201,48,74,.4);
  border-color: rgba(201,48,74,.6);
  transform: scale(1.08);
}
.pb2b-nav:disabled { opacity: .3; cursor: not-allowed; transform: none; }

/* ── DOTS ── */
.pb2b-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
.pb2b-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: none;
  cursor: pointer;
  transition: background .25s, transform .25s, width .25s;
  padding: 0;
}
.pb2b-dot.active {
  background: #f5d27a;
  transform: scale(1.35);
  width: 24px;
  border-radius: 4px;
}

/* ── PROGRESS ── */
.pb2b-progress {
  width: 120px;
  height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  margin: 12px auto 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.pb2b-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c9304a, #f5d27a);
  border-radius: 2px;
  animation: pb2bBar 5s linear infinite;
}
@keyframes pb2bBar {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .pb2b-slider-wrap { padding: 0 48px; }
  .pb2b-card { flex-direction: column; min-height: unset; }
  .pb2b-img-wrap { width: 100%; min-height: 240px; }
  .pb2b-img-overlay {
    background: linear-gradient(to bottom, transparent 50%, rgba(15,3,8,.88) 100%);
  }
  .pb2b-info { padding: 28px 24px 32px; }
  .pb2b-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Badge nutup gambar di mobile — sembunyikan */
  .pb2b-img-badge { display: none; }
}

@media (max-width: 640px) {
  #product-b2b { padding: 60px 0 48px; }
  .pb2b-slider-wrap { padding: 0 38px; }
  .pb2b-nav { width: 34px; height: 34px; font-size: .85rem; }
  .pb2b-nav--prev { margin-right: 5px; }
  .pb2b-nav--next { margin-left: 5px; }
  .pb2b-img-wrap { min-height: 200px; }
  .pb2b-features {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px;
  }
  .pb2b-feat { flex-direction: row; align-items: center; gap: 10px; }
  .pb2b-actions { flex-direction: column; }
  .pb2b-btn { min-width: unset; width: 100%; }
}

@media (max-width: 480px) {
  #product-b2b { padding: 48px 0 40px; }
  .pb2b-slider-wrap { padding: 0 26px; }
  .pb2b-nav { width: 28px; height: 28px; font-size: .78rem; }
  .pb2b-nav--prev { margin-right: 3px; }
  .pb2b-nav--next { margin-left: 3px; }
  .pb2b-img-wrap { min-height: 170px; }
  .pb2b-info { padding: 18px 14px 22px; }
  .pb2b-name { font-size: clamp(1.25rem, 5vw, 1.6rem); }
  .pb2b-subtitle { font-size: .82rem; }
  .pb2b-desc { font-size: .82rem; margin-bottom: 16px; }
  .pb2b-features { padding: 12px; gap: 6px; }
  .pb2b-feat__label { font-size: .58rem; }
  .pb2b-feat__value { font-size: .74rem; }
  .pb2b-btn { padding: 11px 14px; }
  .pb2b-note { font-size: .68rem; }
  .pb2b-dots { gap: 5px; margin-top: 18px; }
}

@media (max-width: 360px) {
  .pb2b-slider-wrap { padding: 0 18px; }
  .pb2b-nav { width: 24px; height: 24px; font-size: .72rem; }
  .pb2b-nav--prev { margin-right: 2px; }
  .pb2b-nav--next { margin-left: 2px; }
  .pb2b-info { padding: 14px 12px 18px; }
  .pb2b-img-wrap { min-height: 150px; }
  .pb2b-name { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pb2b-track, .pb2b-btn, .pb2b-img { transition: none; }
  .pb2b-progress-bar { animation: none; width: 100%; }
}
