/* OrangPerak — Kedai, Affiliate & Dropship (komponen .st-*). Dimuatkan pada semua layout. */
.st-page { max-width: 1100px; display: grid; gap: 20px; }
.st-page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.st-page-head h1 { margin: 2px 0 6px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.st-eyebrow { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a6400; }
.st-lead { margin: 0; max-width: 680px; color: #475569; font-size: .96rem; line-height: 1.6; }
.st-muted { color: #64748b; font-size: .86rem; line-height: 1.55; margin: 6px 0 0; }
.st-warn { color: #92400e; font-weight: 600; }
.st-pos { color: #047857; font-weight: 700; }
.st-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; box-shadow: 0 4px 20px rgb(15 23 42 / 4%); }
.st-card h2 { margin: 0 0 12px; font-size: 1.08rem; font-weight: 800; color: #0f172a; }
.st-subhead { margin: 18px 0 8px; font-size: .9rem; font-weight: 800; color: #0f172a; }
.st-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.st-empty { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; text-align: center; color: #64748b; background: #fff; border: 1px dashed #cbd5e1; border-radius: 16px; }
.st-empty i { font-size: 2rem; color: #F0B90B; }

.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; font: inherit; font-weight: 700; font-size: .88rem; text-decoration: none; cursor: pointer; transition: filter .15s, background .15s, transform .1s; }
.st-btn:hover { filter: brightness(.97); }
.st-btn:active { transform: translateY(1px); }
.st-btn[disabled] { opacity: .5; cursor: not-allowed; }
.st-btn--primary { background: #F0B90B; border-color: #F0B90B; color: #1a1a1a; }
.st-btn--dark { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.st-btn--ghost { background: transparent; }
.st-btn--lg { min-height: 50px; padding: 12px 22px; font-size: .96rem; }
.st-btn--sm { min-height: 34px; padding: 6px 12px; font-size: .8rem; }
.st-btn--wa { background: #16a34a; border-color: #16a34a; color: #fff; }
.st-btn--fb { background: #0866ff; border-color: #0866ff; color: #fff; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.st-pill--ok { background: #dcfce7; color: #166534; }
.st-pill--wait { background: #fef3c7; color: #92400e; }

.st-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #f1f5f9; color: #334155; white-space: nowrap; }
.st-badge--pending, .st-badge--pending_payment { background: #fef3c7; color: #92400e; }
.st-badge--approved, .st-badge--paid, .st-badge--completed, .st-badge--delivered, .st-badge--active { background: #dcfce7; color: #166534; }
.st-badge--cancelled, .st-badge--rejected, .st-badge--refunded, .st-badge--blocked { background: #fee2e2; color: #991b1b; }
.st-badge--processing, .st-badge--shipped { background: #dbeafe; color: #1e40af; }

.st-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.st-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px; background: #fffbea; color: #334155; font-size: .9rem; line-height: 1.5; }
.st-steps li span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #F0B90B; color: #1a1a1a; font-weight: 800; font-size: .85rem; }

.st-linkbox { background: linear-gradient(135deg, #fffbea, #fff); border-color: #f5dc8a; }
.st-linkbox__label { font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.st-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #fef3c7; color: #7a5c00; padding: 2px 8px; border-radius: 6px; }
.st-copy { display: flex; gap: 8px; }
.st-copy input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font: inherit; font-size: .9rem; background: #fff; color: #0f172a; }
.st-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.st-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.st-stat { display: grid; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.st-stat span { font-size: .78rem; font-weight: 600; color: #64748b; }
.st-stat strong { font-size: 1.4rem; font-weight: 800; color: #0f172a; letter-spacing: -.01em; }
.st-stat--accent { background: #fffbea; border-color: #f5dc8a; }
.st-balance { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding: 14px 16px; border-radius: 12px; background: #f8fafc; }
.st-balance span { color: #64748b; font-weight: 600; font-size: .85rem; }
.st-balance strong { font-size: 1.5rem; font-weight: 800; color: #0f172a; }

.st-form { display: grid; gap: 12px; margin-top: 12px; }
.st-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; color: #334155; }
.st-form input, .st-form textarea, .st-form select { min-height: 44px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font: inherit; font-size: .92rem; font-weight: 400; background: #fff; color: #0f172a; }
.st-form textarea { min-height: 88px; resize: vertical; }
.st-form .st-check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.st-form .st-check input { min-height: 0; width: 18px; height: 18px; accent-color: #F0B90B; }
.st-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

.st-table-wrap { overflow-x: auto; margin: 0 -4px; }
.st-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.st-table th { text-align: left; padding: 10px 8px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #64748b; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.st-table td { padding: 12px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; color: #0f172a; }
.st-table tr:last-child td { border-bottom: 0; }
.st-prodcell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.st-prodcell img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.st-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f8fafc; font-size: .86rem; }
.st-mini-list a { color: inherit; text-decoration: none; }
.st-mini-list a:hover { text-decoration: underline; }

.st-sharelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-sharelist li { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #f1f5f9; border-radius: 12px; }
.st-sharelist img, .st-thumb-ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.st-thumb-ph { display: grid; place-items: center; background: #fffbea; color: #C99A0A; font-size: 1.3rem; }
.st-sharelist__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.st-sharelist__body strong { font-size: .9rem; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-sharelist__body small { color: #64748b; }
.st-sender { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.st-sender p { margin: 0 0 6px; }

/* ── Kedai awam: kad produk, hero, jaminan ──────────────────────── */
.st-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; padding: 30px; border-radius: 20px; background: radial-gradient(circle at 85% 20%, #fde68a 0, transparent 45%), linear-gradient(135deg, #1a1a1a, #2d2a1f); color: #fff; overflow: hidden; }
.st-hero h1 { margin: 6px 0 10px; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; color: #fff; }
.st-hero p { margin: 0; color: #e5e7eb; max-width: 520px; line-height: 1.6; }
.st-hero .st-eyebrow { color: #F0B90B; }
.st-hero__art { justify-self: end; display: flex; gap: 14px; }
.st-hero__art i { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 24px; background: rgb(240 185 11 / 18%); color: #F0B90B; font-size: 42px; box-shadow: inset 0 0 0 1px rgb(240 185 11 / 35%); }
.st-hero__art i + i { transform: translateY(18px) rotate(8deg); }
.st-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .84rem; color: #e5e7eb; }
.st-trust li::before { content: "✓"; margin-right: 6px; color: #F0B90B; font-weight: 800; }
.st-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.st-prod { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.st-prod:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(15 23 42 / 10%); }
.st-prod__img { aspect-ratio: 1 / 1; background: #f8fafc; display: grid; place-items: center; overflow: hidden; }
.st-prod__img img { width: 100%; height: 100%; object-fit: cover; }
.st-prod__img i { font-size: 2.4rem; color: #e2c46b; }
.st-prod__body { display: grid; gap: 6px; padding: 14px; }
.st-prod__title { font-weight: 700; font-size: .95rem; line-height: 1.35; color: #0f172a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-prod__price { font-weight: 800; font-size: 1.08rem; color: #0f172a; }
.st-prod__meta { font-size: .76rem; color: #64748b; }
.st-prod__tag { justify-self: start; padding: 3px 8px; border-radius: 6px; background: #fef3c7; color: #7a5c00; font-size: .7rem; font-weight: 800; }
.st-prod__soldout { justify-self: start; padding: 3px 8px; border-radius: 6px; background: #fee2e2; color: #991b1b; font-size: .7rem; font-weight: 800; }
.st-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.st-section-head h2 { margin: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.st-section-head h2 span { color: #C99A0A; }
.st-section-head p { margin: 4px 0 0; color: #64748b; font-size: .9rem; }
.st-affbox { margin-top: 14px; padding: 14px; border: 1px dashed #e2c46b; border-radius: 12px; background: #fffdf5; }
.st-affbox strong { display: block; margin-bottom: 4px; font-size: .9rem; color: #0f172a; }
.st-affbox p { margin: 0 0 8px; font-size: .8rem; color: #64748b; }

/* ── Admin: perlu tindakan ──────────────────────────────────────── */
.st-todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.st-todo a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; color: #0f172a; text-decoration: none; font-weight: 600; font-size: .88rem; }
.st-todo a:hover { border-color: #F0B90B; }
.st-todo b { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 1rem; }
.st-todo a.is-zero b { background: #f1f5f9; color: #94a3b8; }
.st-todo-none { padding: 14px 16px; border-radius: 14px; background: #f0fdf4; color: #166534; font-weight: 600; margin-bottom: 20px; }

@media (max-width: 720px) {
  .st-hero { grid-template-columns: 1fr; padding: 22px; }
  .st-hero__art { display: none; }
  .st-card { padding: 16px; }
  .st-copy { flex-direction: column; }
  .st-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .st-prod__body { padding: 10px; }
}
.st-store-logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #1a1a1a; color: #F0B90B; font-weight: 800; font-size: .95rem; letter-spacing: .02em; flex: none; }
.st-store-logo--sm { width: 44px; height: 44px; border-radius: 12px; }
.st-buyrow { display: flex; gap: 8px; align-items: stretch; }
.st-buyrow .pk-btn { flex: 1; }
.st-qty { display: inline-flex; align-items: stretch; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: #fff; }
.st-qty button { width: 38px; border: 0; background: #f8fafc; color: #0f172a; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.st-qty button:hover { background: #fef3c7; }
.st-qty input { width: 48px; border: 0; text-align: center; font: inherit; font-weight: 700; color: #0f172a; background: #fff; -moz-appearance: textfield; }
.st-qty input::-webkit-outer-spin-button, .st-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.op-ad-inline { margin: 1.5rem auto; max-width: 820px; text-align: center; }
.admin-section-title { margin: 8px 0 12px; font-size: 1rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; }
