/* ==========================================================================
   SC Marketplace — Gaya tambahan halaman publik & autentikasi
   Hak cipta (c) 2026 sharecode.id — https://sharecode.id · Lisensi: LICENSE.md
   Dimuat SETELAH responsive.css. Hanya berisi kelas yang belum ada di
   style.css / marketplace.css.
   ========================================================================== */

/* ---------- Katalog: panel filter ---------- */
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .3rem .5rem; border-radius: 7px; color: var(--mp-text); font-size: 13.5px; }
.filter-list a:hover { background: var(--mp-bg); color: var(--mp-primary); }
.filter-list a.active { background: var(--mp-primary-soft); color: var(--mp-primary); font-weight: 700; }
.filter-list a small { color: var(--mp-muted); font-weight: 500; }
.filter-list .filter-sub { padding-left: .85rem; border-left: 2px solid var(--mp-primary-soft); margin: .2rem 0 .35rem .6rem; }
.filter-list .filter-sub a { font-size: 13px; }
.price-presets { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.price-presets button { border: 1px solid var(--mp-border); background: #fff; border-radius: 50px; font-size: 12px; padding: .2rem .65rem; color: var(--mp-text); }
.price-presets button:hover, .price-presets button.active { border-color: var(--mp-primary); color: var(--mp-primary); background: var(--mp-primary-soft); }
.filter-more { font-size: 12.5px; font-weight: 600; background: none; border: 0; padding: 0; color: var(--mp-primary); }
.filter-drawer-head, .filter-drawer-foot { display: none; }
.filter-backdrop { display: none; }
.result-info { font-size: 13.5px; color: var(--mp-muted); }
.result-info b { color: var(--mp-navy); }
.sort-bar .custom-select { width: auto; height: 34px; padding-top: .3rem; padding-bottom: .3rem; font-size: 13px; }

@media (max-width: 991.98px) {
  .filter-box.filter-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 330px; max-width: 88vw; max-height: none; z-index: 1066; border-radius: 0; border: 0; padding: 0 1rem; transform: translateX(-105%); transition: transform .25s ease; overflow-y: auto; }
  .filter-box.filter-drawer.show { transform: none; box-shadow: var(--mp-shadow-lg); }
  .filter-drawer .filter-drawer-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; z-index: 2; padding: .85rem 0; border-bottom: 1px solid var(--mp-border); margin-bottom: .75rem; }
  .filter-drawer .filter-drawer-foot { display: flex; gap: .5rem; position: sticky; bottom: 0; background: #fff; padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--mp-border); margin-top: .75rem; }
  .filter-backdrop.show { display: block; position: fixed; inset: 0; z-index: 1064; background: rgba(15, 23, 42, .5); }
}

/* ---------- Kategori ---------- */
.catx-card { background: #fff; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); padding: 1.1rem; height: 100%; transition: box-shadow var(--mp-ease); }
.catx-card:hover { box-shadow: var(--mp-shadow); }
.catx-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.catx-head img { width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0; }
.catx-head h2 { font-size: 17px; margin: 0; }
.catx-subs { display: flex; flex-wrap: wrap; gap: .4rem; }
.catx-subs a { font-size: 12.5px; background: var(--mp-bg); color: var(--mp-text); border-radius: 50px; padding: .25rem .7rem; }
.catx-subs a:hover { background: var(--mp-primary-soft); color: var(--mp-primary); }
.catx-subs a small { color: var(--mp-muted); }

/* ---------- Detail produk ---------- */
.pd-gallery .pd-main .pd-zoom-hint { position: absolute; right: .6rem; bottom: .6rem; background: rgba(23, 43, 77, .75); color: #fff; font-size: 11.5px; padding: .2rem .55rem; border-radius: 50px; pointer-events: none; }
.pd-gallery .pd-main.zooming .pd-zoom-hint { display: none; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: 13.5px; color: var(--mp-muted); }
.pd-meta b { color: var(--mp-navy); }
.pd-row { display: flex; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--mp-border); font-size: 13.5px; }
.pd-row > .pd-label { width: 96px; flex-shrink: 0; color: var(--mp-muted); padding-top: .35rem; }
.pd-row > .pd-val { flex: 1; min-width: 0; }
.variant-missing .pd-label, .variant-missing .variant-err { color: var(--mp-danger); }
.variant-err { display: none; font-size: 12.5px; font-weight: 600; }
.variant-missing .variant-err { display: block; }
.ship-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.ship-list li { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid #f1f2f4; font-size: 13px; }
.ship-list li:last-child { border-bottom: 0; }
.buy-card .subtotal { font-family: var(--mp-font-head); font-weight: 800; font-size: 19px; color: var(--mp-navy); }
.review-filter .btn { margin: 0 .35rem .4rem 0; }
.review-filter .btn.active { background: var(--mp-primary-soft); border-color: var(--mp-primary); color: var(--mp-primary); }
.seller-reply { background: var(--mp-bg); border-left: 3px solid var(--mp-primary); border-radius: 0 8px 8px 0; padding: .55rem .8rem; font-size: 13px; margin-top: .6rem; }
body[data-page="product-detail"] .mbot { display: none; }
@media (max-width: 991.98px) {
  body[data-page="product-detail"] { padding-bottom: 76px; }
}

/* ---------- Toko ---------- */
.store-tabs { background: #fff; border-radius: var(--mp-radius); box-shadow: var(--mp-shadow-sm); padding: 0 .75rem; }
.etalase a { display: flex; justify-content: space-between; padding: .5rem .75rem; border-radius: 8px; color: var(--mp-text); font-size: 13.5px; }
.etalase a:hover { background: var(--mp-bg); }
.etalase a.active { background: var(--mp-primary-soft); color: var(--mp-primary); font-weight: 700; }
.hours-table td { padding: .35rem 0; font-size: 13.5px; }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.store-filter-bar { background: #fff; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); padding: .9rem; margin-bottom: 1rem; }
.type-pills .btn { margin: 0 .3rem .3rem 0; }
.type-pills .btn.active { background: var(--mp-primary); border-color: var(--mp-primary); color: #fff; }

/* ---------- Flash sale ---------- */
.fs-hero { border-radius: var(--mp-radius-lg); background: linear-gradient(120deg, #b91c1c, var(--mp-primary) 60%, var(--mp-primary-2)); color: #fff; padding: 1.75rem 2rem; position: relative; overflow: hidden; }
.fs-hero::after { content: ''; position: absolute; right: -60px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.fs-hero h1 { color: #fff; font-weight: 800; font-style: italic; position: relative; }
.fs-hero h1 i { color: #fde047; }
.fs-sessions { display: flex; overflow-x: auto; gap: .4rem; scrollbar-width: none; }
.fs-sessions::-webkit-scrollbar { display: none; }
.fs-session { flex: 1 0 120px; border: 0; background: #fff; border-radius: var(--mp-radius-sm); padding: .6rem .5rem; text-align: center; border: 1px solid var(--mp-border); line-height: 1.25; }
.fs-session b { display: block; font-family: var(--mp-font-head); font-size: 18px; color: var(--mp-navy); }
.fs-session small { font-size: 11.5px; color: var(--mp-muted); }
.fs-session.active { background: var(--mp-navy); border-color: var(--mp-navy); }
.fs-session.active b, .fs-session.active small { color: #fff; }
.fs-session.ended b { color: #9ca3af; }
.fs-status-bar { background: #fff; border-radius: var(--mp-radius); border: 1px solid var(--mp-border); padding: .75rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.fs-status-bar .cd span[data-cd] { background: var(--mp-danger); }
.fs-status-bar .cd em { color: var(--mp-danger); }
.fs-cell { display: flex; flex-direction: column; height: 100%; }
.fs-cell .pc { height: auto; flex: 1; }
.fs-cell .btn { margin-top: .4rem; }

/* ---------- Promo ---------- */
.camp-card { scroll-margin-top: 150px; transition: box-shadow .3s; }
.camp-card.highlight { box-shadow: 0 0 0 3px var(--mp-primary), var(--mp-shadow); }
.camp-img { aspect-ratio: 3/1; background-size: cover; background-position: center; border-radius: var(--mp-radius) var(--mp-radius) 0 0; }
.promo-anchor-nav { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.promo-anchor-nav::-webkit-scrollbar { display: none; }
.promo-anchor-nav a { white-space: nowrap; }
.ongkir-box { background: linear-gradient(120deg, #15803d, #22c55e); color: #fff; border-radius: var(--mp-radius); padding: 1.5rem; }
.ongkir-box h3 { color: #fff; }

/* ---------- Halaman informasi ---------- */
.info-side { position: sticky; top: 140px; }
.info-card { background: #fff; border-radius: var(--mp-radius); border: 1px solid var(--mp-border); padding: 1.75rem 2rem; }
.toc a { display: block; font-size: 13px; color: var(--mp-muted); padding: .2rem 0 .2rem .75rem; border-left: 2px solid var(--mp-border); }
.toc a:hover { color: var(--mp-primary); border-left-color: var(--mp-primary); }
.prose h2 { scroll-margin-top: 150px; }
.prose table { width: 100%; margin-bottom: 1rem; font-size: 14px; }
.prose table th, .prose table td { border: 1px solid var(--mp-border); padding: .5rem .75rem; }
.prose table th { background: var(--mp-bg); font-family: var(--mp-font-head); color: var(--mp-navy); }
.prose .callout { background: var(--mp-primary-soft); border-radius: var(--mp-radius-sm); padding: .9rem 1.1rem; font-size: 14px; margin: 1rem 0; }
.stat-big b { display: block; font-family: var(--mp-font-head); font-size: 30px; font-weight: 800; color: var(--mp-primary); line-height: 1.1; }
.stat-big span { color: var(--mp-muted); font-size: 13.5px; }
.value-card { background: #fff; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); padding: 1.4rem; height: 100%; }
.value-card > i { width: 48px; height: 48px; border-radius: 14px; background: var(--mp-primary-soft); color: var(--mp-primary); display: grid; place-items: center; font-size: 22px; margin-bottom: .85rem; }
.milestone { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--mp-primary-soft); }
.milestone li { position: relative; padding: 0 0 1.25rem 1.5rem; }
.milestone li::before { content: ''; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--mp-primary); box-shadow: 0 0 0 4px var(--mp-primary-soft); }
.milestone b { font-family: var(--mp-font-head); color: var(--mp-navy); }
.map-placeholder { position: relative; min-height: 260px; border-radius: var(--mp-radius); overflow: hidden; background: #e8eef5; background-image: linear-gradient(#d7e0ea 1px, transparent 1px), linear-gradient(90deg, #d7e0ea 1px, transparent 1px); background-size: 34px 34px; }
.map-placeholder::before { content: ''; position: absolute; left: -10%; right: -10%; top: 55%; height: 18px; background: #fff; transform: rotate(-12deg); box-shadow: 0 0 0 1px #cbd5e1; }
.map-placeholder::after { content: ''; position: absolute; top: -10%; bottom: -10%; left: 38%; width: 14px; background: #fff; transform: rotate(18deg); box-shadow: 0 0 0 1px #cbd5e1; }
.map-pin { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -100%); z-index: 2; text-align: center; }
.map-pin i { font-size: 42px; color: var(--mp-primary); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); }
.map-pin span { display: block; background: #fff; border-radius: 8px; padding: .3rem .6rem; font-size: 12px; font-weight: 700; color: var(--mp-navy); box-shadow: var(--mp-shadow); white-space: nowrap; }
.contact-card { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); background: #fff; height: 100%; }
.contact-card > i { width: 44px; height: 44px; border-radius: 12px; background: var(--mp-primary-soft); color: var(--mp-primary); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.faq-acc .card { margin-bottom: .6rem; box-shadow: none; }
.faq-acc .card-header { padding: 0; border-bottom: 0; background: #fff; }
.faq-acc .card-header button { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .95rem 1.2rem; background: none; border: 0; font-family: var(--mp-font-head); font-weight: 700; color: var(--mp-navy); font-size: 14.5px; }
.faq-acc .card-header button i { transition: transform .2s; color: var(--mp-muted); }
.faq-acc .card-header button[aria-expanded="true"] i { transform: rotate(180deg); color: var(--mp-primary); }
.faq-acc .card-body { padding-top: 0; color: var(--mp-text); font-size: 14px; line-height: 1.75; }
mark.hl { background: #fef08a; padding: 0 2px; border-radius: 3px; }
.hero-search { position: relative; max-width: 560px; }
.hero-search .form-control { height: 52px; border-radius: 12px; padding-left: 3rem; border: 0; font-size: 15px; }
.hero-search > i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--mp-muted); font-size: 18px; z-index: 2; }
.topic-card { display: flex; flex-direction: column; gap: .5rem; background: #fff; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); padding: 1.2rem; height: 100%; color: var(--mp-text); transition: all var(--mp-ease); text-align: left; width: 100%; }
.topic-card:hover, .topic-card.active { border-color: var(--mp-primary); box-shadow: var(--mp-shadow); color: var(--mp-text); }
.topic-card > i { font-size: 26px; color: var(--mp-primary); }
.topic-card b { font-family: var(--mp-font-head); color: var(--mp-navy); }
.article-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--mp-border); color: var(--mp-text); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font-size: 14px; }
.article-link:hover { color: var(--mp-primary); }

/* Skema escrow */
.escrow-flow { display: flex; align-items: stretch; gap: .5rem; flex-wrap: wrap; }
.escrow-node { flex: 1 1 150px; background: #fff; border: 1px solid var(--mp-border); border-radius: var(--mp-radius); padding: 1rem; text-align: center; position: relative; }
.escrow-node i { font-size: 26px; color: var(--mp-primary); display: block; margin-bottom: .4rem; }
.escrow-node b { display: block; font-family: var(--mp-font-head); color: var(--mp-navy); font-size: 14px; }
.escrow-node small { color: var(--mp-muted); font-size: 12px; }
.escrow-node.hold { background: var(--mp-primary-soft); border-color: var(--mp-primary); }
.escrow-arrow { display: flex; align-items: center; color: var(--mp-primary); font-size: 20px; }
@media (max-width: 767.98px) {
  .escrow-flow { flex-direction: column; }
  .escrow-arrow { justify-content: center; transform: rotate(90deg); }
  .info-card { padding: 1.25rem 1.1rem; }
  .page-hero { padding: 1.75rem 1.25rem; }
  .fs-hero { padding: 1.25rem; }
  .info-side { position: static; }
}

/* ---------- Autentikasi ---------- */
.auth-side .auth-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; position: relative; z-index: 1; }
.auth-side .auth-brand img { width: 44px; height: 44px; background: #fff; border-radius: 12px; padding: 4px; }
.auth-side .auth-brand b { font-family: var(--mp-font-head); font-weight: 800; font-size: 22px; }
.auth-side .auth-points { list-style: none; padding: 0; margin: 1.5rem 0 0; position: relative; z-index: 1; }
.auth-side .auth-points li { display: flex; gap: .75rem; margin-bottom: 1rem; }
.auth-side .auth-points i { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.auth-side .auth-points small { display: block; opacity: .85; }
.auth-quote { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--mp-radius); padding: 1rem 1.2rem; position: relative; z-index: 1; font-size: 14px; }
.auth-form .auth-logo { display: none; }
.role-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.role-pick label { margin: 0; cursor: pointer; }
.role-pick input { position: absolute; opacity: 0; pointer-events: none; }
.role-pick span { display: flex; flex-direction: column; align-items: center; gap: .2rem; border: 1px solid var(--mp-border); border-radius: 10px; padding: .55rem .3rem; font-size: 12.5px; font-weight: 600; color: var(--mp-text); transition: all .15s; }
.role-pick span i { font-size: 18px; color: var(--mp-muted); }
.role-pick input:checked + span { border-color: var(--mp-primary); background: var(--mp-primary-soft); color: var(--mp-primary); }
.role-pick input:checked + span i { color: var(--mp-primary); }
.role-pick input:focus-visible + span { box-shadow: 0 0 0 .2rem rgba(244, 81, 30, .2); }
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 2.75rem; }
.pw-wrap .pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--mp-muted); width: 34px; height: 34px; }
.auth-icon { width: 72px; height: 72px; border-radius: 22px; background: var(--mp-primary-soft); color: var(--mp-primary); display: grid; place-items: center; font-size: 32px; margin: 0 auto 1rem; }
.otp-inputs input.is-invalid { border-color: var(--mp-danger); }
.otp-inputs.shake { animation: otpShake .35s ease; }
@keyframes otpShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.demo-hint { background: var(--mp-bg); border-radius: var(--mp-radius-sm); padding: .6rem .8rem; font-size: 12.5px; color: var(--mp-muted); }
@media (max-width: 767.98px) {
  .auth-form .auth-logo { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; color: var(--mp-navy); }
  .auth-form .auth-logo img { width: 36px; height: 36px; }
  .auth-form .auth-logo b { font-family: var(--mp-font-head); font-weight: 800; color: var(--mp-primary); font-size: 19px; }
}

/* Teks profil toko selalu di bawah banner (kontras) */
@media (min-width: 768px) { .store-hero .sh-info { padding-top: 54px; } }
@media (max-width: 767.98px) { .store-hero .sh-info { flex-basis: 100%; } }
