/* ===========================================================
   BisaUntung.com — halaman Promo (slide produk + barisan promo)
   Desktop: navy–emas (public.css). HP: tema toko oranye (mobile.css).
   Dimuat SETELAH mobile.css agar aturan HP di bawah bisa menimpa.
   =========================================================== */

.promo-top { padding: 40px 0 30px; }
.promo-head { max-width: 64ch; margin-bottom: 26px; }
.promo-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.promo-head .lead { font-size: 15.5px; color: var(--muted); margin: 0; }

/* ---------------- slider ---------------- */

.pslider { position: relative; overflow: hidden; border-radius: var(--r-xl); }
.pslider:focus-within { outline: none; }
.pslides {
  display: flex;
  width: 100%;
  gap: 0;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.pslide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 0;
  border-radius: var(--r-xl);
  border: 1px solid rgba(212, 175, 55, .26);
  background: var(--grad-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pslide-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: radial-gradient(70% 70% at 50% 40%, rgba(212, 175, 55, .12), rgba(6, 11, 20, .96));
  overflow: hidden;
}
.pslide-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pslide-none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); opacity: .5; }
.pslide-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--grad-gold);
  color: #1A1206;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pslide-tag.is-hot { left: auto; right: 14px; background: #F0532B; color: #fff; }
.pslide-tag.is-siap { left: auto; right: 14px; background: rgba(6, 11, 20, .85); color: var(--gold-l); border: 1px solid rgba(212, 175, 55, .5); }

.pslide-body { padding: 30px 32px 32px; display: flex; flex-direction: column; gap: 10px; }
.pslide-kat {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.pslide-title { font-size: clamp(1.4rem, 2.3vw, 1.95rem); margin: 0; }
.pslide-title a { color: #fff; }
.pslide-desc { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.pslide-price { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-top: 2px; }
.pslide-price strong { font-size: 27px; color: #fff; font-variant-numeric: tabular-nums; }
.pslide-price span { font-size: 12px; color: var(--dim); }
.pslide-price em {
  font-style: normal;
  font-size: 11px;
  color: var(--gold-l);
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 999px;
  padding: 3px 9px;
}

.pslide-bar { margin-top: auto; }
.pslide-cta { margin-top: 12px; }
.pslide-cta .btn { width: 100%; }

/* panah & titik */
.pslider-nav {
  position: absolute;
  top: 34%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, .4);
  background: rgba(6, 11, 20, .82);
  color: var(--gold-l);
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(6px);
  transition: background .15s ease, color .15s ease;
}
.pslider-nav:hover { background: rgba(212, 175, 55, .2); color: #fff; }
.pslider-nav.is-prev { left: 12px; }
.pslider-nav.is-next { right: 12px; }

.pslider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.pslider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.pslider-dots button.is-on { width: 26px; background: var(--grad-gold); }

.promo-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--muted);
}
.promo-facts span { display: inline-flex; align-items: center; gap: 7px; }
.promo-facts .i { color: var(--gold); }
.promo-facts strong { color: var(--gold-l); font-weight: 600; }

/* ---------------- barisan horisontal ---------------- */

.hscroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.hscroll > * { scroll-snap-align: start; }
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, .3); border-radius: 999px; }

.mcard {
  position: relative;
  flex: 0 0 190px;
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--grad-card);
  overflow: hidden;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease;
}
.mcard:hover { transform: translateY(-3px); border-color: rgba(212, 175, 55, .4); color: inherit; }
.mcard-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: rgba(6, 11, 20, .7);
  overflow: hidden;
  color: var(--gold);
}
.mcard-media img { width: 100%; height: 100%; object-fit: cover; }
.mcard-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 4px; }
.mcard-name { font-size: 12.5px; color: #fff; font-weight: 600; line-height: 1.35; }
.mcard-price { font-size: 15px; color: var(--gold-l); font-weight: 700; font-variant-numeric: tabular-nums; }
.mcard-price small { font-size: 10.5px; color: var(--dim); font-weight: 400; }
.mcard-meta { font-size: 10.5px; color: var(--dim); }
.mcard-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: #F0532B;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

@media (max-width: 900px) {
  .pslide { grid-template-columns: minmax(0, 1fr); }
  .pslide-media { aspect-ratio: 16 / 10; max-height: 300px; }
  .pslide-body { padding: 20px 22px 24px; }
}

/* ===========================================================
   HP (≤820 px) — tema toko mengikuti mobile.css
   =========================================================== */

@media (max-width: 820px) {
  .promo-top { padding: 10px 0 4px; }
  .promo-head { margin-bottom: 12px; }
  .promo-head .eyebrow { margin-bottom: 6px; }
  .promo-head h1 { font-size: 20px; color: var(--m-ink); margin-bottom: 6px; line-height: 1.25; }
  .promo-head .lead { font-size: 11.5px; color: var(--m-muted); line-height: 1.5; }

  /* kartu slide: gambar atas, isi bawah, sudut 10px seperti kartu toko */
  .pslider { border-radius: 10px; }
  .pslide {
    display: block;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    overflow: hidden;
  }
  .pslide-media { aspect-ratio: 16 / 10; min-height: 0; background: #fff; }
  .pslide-media img { object-fit: cover; }
  .pslide-tag {
    top: 9px;
    left: 9px;
    padding: 4px 9px;
    border-radius: 4px;
    background: linear-gradient(120deg, #F53D2D, #FF7337);
    color: #fff;
    font-size: 9.5px;
    letter-spacing: .03em;
    text-transform: none;
    box-shadow: 0 1px 5px rgba(200, 60, 30, .3);
  }
  .pslide-tag.is-hot { right: 9px; background: #FF7337; }
  .pslide-tag.is-siap { right: 9px; background: rgba(34, 34, 34, .85); color: #fff; border: 0; }

  .pslide-body { padding: 11px 12px 13px; gap: 6px; }
  .pslide-kat { font-size: 9.5px; letter-spacing: .04em; color: var(--m-muted); text-transform: none; }
  .pslide-title { font-size: 15.5px; line-height: 1.3; }
  .pslide-title a { color: var(--m-ink); }
  .pslide-desc { font-size: 11.5px; color: var(--m-muted); line-height: 1.45; }
  .pslide-price { gap: 6px; margin-top: 0; }
  .pslide-price strong { font-size: 21px; color: var(--m-orange); }
  .pslide-price span { font-size: 10.5px; color: var(--m-muted); }
  .pslide-price em {
    font-size: 9.5px;
    color: var(--m-ink-2);
    background: #F5F5F5;
    border: 0;
    border-radius: 3px;
    padding: 2px 6px;
  }
  .pslide-bar .prog-bar { height: 5px; background: #F0F0F0; }
  .pslide-bar .prog-bar span { background: linear-gradient(90deg, #F53D2D, #FF7337); box-shadow: none; }
  .pslide-bar .prog-meta { font-size: 9.5px; color: var(--m-muted); }
  .pslide-bar .prog-meta strong { color: var(--m-orange); font-weight: 600; }
  .pslide-cta { margin-top: 6px; }
  .pslide-cta .btn {
    width: 100%;
    padding: 9px 14px;
    font-size: 12.5px;
    border-radius: 5px;
  }

  .pslider-nav { display: none; }
  .pslider-dots { margin-top: 10px; gap: 6px; }
  .pslider-dots button { width: 6px; height: 6px; background: #D8D8D8; }
  .pslider-dots button.is-on { width: 18px; background: var(--m-orange); }

  .promo-facts {
    gap: 12px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--m-line);
    font-size: 10.5px;
    color: var(--m-muted);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .promo-facts::-webkit-scrollbar { display: none; }
  .promo-facts span { white-space: nowrap; }
  .promo-facts .i { color: var(--m-orange); }
  .promo-facts strong { color: var(--m-ink); }

  /* barisan horisontal: kartu kecil ala flash sale */
  .hscroll { gap: 8px; padding-bottom: 2px; scrollbar-width: none; }
  .hscroll::-webkit-scrollbar { display: none; }
  .mcard {
    flex: 0 0 128px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
  }
  .mcard:hover { transform: none; }
  .mcard-media { aspect-ratio: 1 / 1; background: #fff; color: #E0D6CF; }
  .mcard-body { padding: 7px 8px 9px; gap: 3px; }
  .mcard-name { font-size: 11px; color: var(--m-ink); font-weight: 500; line-height: 1.3; }
  .mcard-price { font-size: 13px; color: var(--m-orange); }
  .mcard-price small { font-size: 9px; color: var(--m-muted); }
  .mcard-meta { font-size: 9px; color: var(--m-muted); }
  .mcard-badge {
    top: 5px;
    right: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    background: linear-gradient(120deg, #F53D2D, #FF7337);
    font-size: 8.5px;
    letter-spacing: 0;
  }

  /* kartu produk memakai gaya mobile.css apa adanya */
  .promo-top + .sec { padding-top: 14px; }
}
