/* Toko Digital — memakai token warna dari app.css */
.shop-main { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 8px 16px 48px; }
.shop .alert { max-width: none; margin: 0 0 16px; }
.shop .alert.ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
a.topbar-tag { text-decoration: none; }

.shop-hero { text-align: center; padding: 7vh 0 4vh; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.shop-hero h1 { font-size: clamp(34px, 6vw, 54px); }
.shop-hero .lead { margin-bottom: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pcard { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; background: rgba(255,255,255,.88); transition: transform .2s, box-shadow .2s; animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -20px rgba(3,105,161,.45); }
.pimg { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(140deg, #e0f2fe, #cffafe); overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pimg-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--sea); opacity: .55; }
.pimg-ph svg { width: 56px; height: 56px; stroke-width: 1.6; }
.pimg-ph.big svg { width: 96px; height: 96px; }
.kind { position: absolute; top: 12px; left: 12px; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 99px; color: #fff; background: linear-gradient(135deg, var(--turq), var(--sea)); box-shadow: 0 4px 12px -4px rgba(2,132,199,.6); }
.kind-service { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.kind.inline { position: static; display: inline-block; margin-bottom: 10px; }
.disc { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 800; color: #be123c; background: #fff1f2; border: 1px solid #fecdd3; padding: 4px 9px; border-radius: 99px; }
.pbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pbody h2 { margin: 0; font-size: 16.5px; color: var(--ink); line-height: 1.35; }
.pbody p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pfoot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.pprice { display: flex; flex-direction: column; }
.pprice s { font-size: 12.5px; color: var(--faint); }
.pprice b { font-size: 19px; color: var(--sea-deep); letter-spacing: -.01em; }
.pprice.big { margin: 4px 0 2px; }
.pprice.big b { font-size: 30px; }
.stock { font-size: 12px; font-weight: 700; color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.stock.out { color: #be123c; background: #fff1f2; border-color: #fecdd3; }
.empty { text-align: center; }

.back { margin: 8px 0 14px; text-decoration: none; }
.pdetail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.gallery { background: rgba(255,255,255,.88); }
.main-img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(140deg, #e0f2fe, #cffafe); }
.main-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 70px; height: 56px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; }
.thumbs button.on { border-color: var(--sea); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.desc { margin-top: 18px; }
.desc h2 { font-size: 17px; margin: 0 0 8px; }
.desc p, .desc li, .dnote p, .dnote li { line-height: 1.7; font-size: 14.5px; }
.desc a, .dnote a { color: var(--sea-deep); font-weight: 600; word-break: break-all; }

.buy { position: sticky; top: 16px; background: rgba(255,255,255,.92); }
.buy h1 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; text-align: left; line-height: 1.2; }
.buy .muted { margin: 0 0 12px; }
.perks { list-style: none; padding: 0; margin: 14px 0 6px; }
.perks li { position: relative; padding-left: 24px; margin: 6px 0; font-size: 14px; }
.perks li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 11px; height: 6px; border-left: 2.5px solid var(--turq); border-bottom: 2.5px solid var(--turq); transform: rotate(-45deg); }
.fl { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fl small { font-weight: 500; color: var(--faint); }
.fl input, .fl textarea { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid #cfe2ef; background: #fff; color: var(--ink); font: 14.5px var(--font); outline: 0; }
.fl input:focus, .fl textarea:focus { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(6,182,212,.18); }
.qty { display: inline-flex; align-items: center; border: 1px solid #cfe2ef; border-radius: 12px; overflow: hidden; width: max-content; background: #fff; }
.qty button { width: 40px; height: 42px; border: 0; background: #f0f9ff; color: var(--sea-deep); font-size: 20px; font-weight: 700; }
.qty input { width: 64px; border: 0 !important; text-align: center; border-radius: 0 !important; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 2px; border-top: 1px dashed var(--line-strong); margin-top: 4px; }
.total b { font-size: 22px; color: var(--ink); }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.agree input { margin-top: 3px; width: auto !important; padding: 0 !important; flex: none; }
.agree span { flex: 1; }
.agree a { color: var(--sea-deep); font-weight: 600; }
.paybtn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; color: #fff; font: 700 16px var(--font); padding: 15px 22px; border-radius: 14px; text-decoration: none; cursor: pointer;
  background: linear-gradient(135deg, var(--turq), var(--sea) 60%, var(--sea-deep)); box-shadow: 0 12px 26px -10px rgba(2,132,199,.7); }
.paybtn svg { width: 18px; height: 18px; stroke-width: 2.4; }
.paybtn:hover { filter: brightness(1.07); }
.paybtn[disabled] { filter: grayscale(.3); cursor: progress; }
.paybtn.inline { margin-top: 8px; }
.secure { margin: 0; font-size: 12.5px; color: var(--faint); text-align: center; }

.ord { margin-top: 12px; }
.ord-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.steps3 { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 20px 0 0; }
.steps3 li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--faint); padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.steps3 li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #e2edf5; color: var(--muted); flex: none; }
.steps3 li.done { color: var(--sea-deep); }
.steps3 li.done span { background: linear-gradient(140deg, var(--turq), var(--sea)); color: #fff; }
.steps3 li.current { color: var(--ink); border-color: var(--turq); box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
.steps3 li.current span { background: var(--ink); color: #fff; }
.shop-main > section + section { margin-top: 16px; }
.keys { display: grid; gap: 8px; margin-bottom: 14px; }
.keyrow { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line-strong); }
.keyrow code { flex: 1; font: 600 15px var(--mono); color: var(--ink); word-break: break-all; letter-spacing: .03em; }
.keyrow .copy { padding: 8px 14px; }
.dnote { padding: 14px 16px; border-radius: 14px; background: #f0f9ff; border: 1px solid #bae6fd; margin-top: 10px; }

@media (max-width: 860px) {
  .pdetail { grid-template-columns: 1fr; }
  .buy { position: static; order: -1; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pbody { padding: 12px; }
  .pbody h2 { font-size: 14.5px; }
  .pbody p { display: none; }
  .pprice b { font-size: 16px; }
  .pfoot { flex-direction: column; align-items: flex-start; }
  .steps3 { grid-template-columns: 1fr; }
}

/* ---------- keranjang ---------- */
.cart-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--sea-deep); background: rgba(255,255,255,.75); border: 1px solid var(--line); text-decoration: none; backdrop-filter: blur(8px); }
.cart-btn:hover { background: #fff; }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #e11d48; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.cart-count[hidden] { display: none; }
.cart-count.pop { animation: cpop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes cpop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
.buybtns { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.cartbtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--sea); background: #fff; color: var(--sea-deep); font: 700 14.5px var(--font); cursor: pointer; }
.cartbtn:hover { background: #f0f9ff; }
.cartbtn[disabled] { opacity: .6; cursor: progress; }
.cartbtn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.small-hint { margin: 0; font-size: 12.5px; color: var(--faint); text-align: center; }
.small-hint a { color: var(--sea-deep); font-weight: 700; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 6px 14px; width: max-content; align-items: center; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 14px; background: #0b2a45; color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 18px 40px -12px rgba(11,42,69,.55); animation: rise .3s ease both; }
.toast.bad { background: #be123c; }
.toast a { color: #67e8f9; font-weight: 800; white-space: nowrap; text-decoration: none; }
.toast[hidden] { display: none; }

.cart-form { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cart-list { background: rgba(255,255,255,.9); }
.cl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.cl-head h1 { font-size: clamp(22px, 3vw, 28px); margin: 0; text-align: left; }
.cl-head .muted { font-size: 15px; font-weight: 600; }
.linkbtn { border: 0; background: none; color: #be123c; font: 700 13px var(--font); cursor: pointer; padding: 4px; }
.cline { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) 32px; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.cl-img { display: block; width: 84px; height: 66px; border-radius: 12px; overflow: hidden; background: linear-gradient(140deg, #e0f2fe, #cffafe); }
.cl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-img .pimg-ph svg { width: 30px; height: 30px; }
.cl-body { display: grid; gap: 4px; min-width: 0; }
.cl-name { font-weight: 800; color: var(--ink); text-decoration: none; line-height: 1.35; }
.cl-name:hover { color: var(--sea-deep); }
.cl-kind { font-size: 12.5px; color: var(--faint); }
.cl-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.qty.sm button { width: 34px; height: 36px; font-size: 18px; }
.qty.sm input { width: 48px; padding: 6px 0; }
.cl-unit { font-size: 13px; color: var(--muted); }
.cl-sub { margin-left: auto; font-size: 16px; color: var(--ink); }
.cl-note { margin-top: 6px; }
.cl-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--faint); cursor: pointer; display: grid; place-items: center; padding: 0; }
.cl-x:hover { color: #be123c; border-color: #fecdd3; background: #fff1f2; }
.cl-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.cart-pay h2 { margin: 0 0 12px; font-size: 18px; }
.sumlines { display: grid; gap: 6px; padding-top: 6px; font-size: 13.5px; }
.sumlines div { display: flex; justify-content: space-between; gap: 10px; }
.sumlines span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sumlines span:last-child { white-space: nowrap; font-weight: 700; color: var(--ink); }
.cart-empty, .redir { text-align: center; max-width: 560px; margin: 4vh auto 0; background: rgba(255,255,255,.9); }
.cart-empty h1, .redir h1 { font-size: clamp(22px, 3.4vw, 30px); margin: 10px 0 8px; }
.ce-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e0f2fe; color: var(--sea-deep); }
.ce-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-empty .small-hint, .redir .small-hint { margin-top: 14px; }
.spin { display: inline-block; width: 46px; height: 46px; border-radius: 50%; border: 4px solid #cfe2ef; border-top-color: var(--sea); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.olines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.olines li { display: flex; justify-content: space-between; gap: 12px; }
.olines li span:last-child { white-space: nowrap; color: var(--muted); }
.dline { padding: 12px 0 4px; border-top: 1px dashed var(--line-strong); }
.dline:first-of-type { border-top: 0; padding-top: 0; }
.dl-name { margin: 0 0 8px; font-weight: 800; color: var(--ink); }
@media (max-width: 860px) { .cart-form { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cline { grid-template-columns: 60px minmax(0, 1fr) 30px; gap: 10px; }
  .cl-img { width: 60px; height: 50px; }
  .buybtns { grid-template-columns: 1fr; }
  .cartbtn { padding: 12px; }
}
.cart-pay .stack > *, .sumlines div > span { min-width: 0; }
.cart-pay .stack { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .cart-pay { order: 0; position: static; } }
.sumlines { grid-template-columns: minmax(0, 1fr); }
.sumlines span:last-child { flex: none; }

/* informasi produk standar (dibaca pembeli & peninjau payment gateway) */
.pinfo { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(8, 60, 90, .12); }
.pinfo h2 { font-size: 17px; margin: 0 0 10px; }
.pinfo dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; line-height: 1.55; }
.pinfo dt { color: var(--muted); font-weight: 600; }
.pinfo dd { margin: 0; }
@media (max-width: 560px) { .pinfo dl { grid-template-columns: 1fr; gap: 2px; } .pinfo dd { margin-bottom: 8px; } }
