/* ============================================================
   soodu.id: produk digital (halaman link mitra, produk, katalog, pesanan)
   ============================================================ */

/* ---------- halaman mandiri (/d/...) ---------- */
.dg-body { margin: 0; min-height: 100vh; font-family: 'Quicksand', system-ui, sans-serif; color: #1f2933;
   background: linear-gradient(180deg, var(--dg-soft) 0, #f7f9f8 360px); }
.dg-body a { color: inherit; text-decoration: none; }
.dg-wrap { max-width: 560px; margin: 0 auto; padding: 36px 18px 24px; }
.dg-wrap-wide { max-width: 880px; padding-top: 18px; }
.material-icons-round { font-family: 'Material Icons Round'; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1;
   display: inline-block; white-space: nowrap; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; vertical-align: middle; }

.dg-profile { text-align: center; margin-bottom: 20px; }
.dg-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(0,0,0,.12); background: #fff; }
.dg-profile h1 { font-size: 1.5rem; margin: 12px 0 6px; }
.dg-bio { margin: 0 auto; max-width: 420px; color: #4b5563; line-height: 1.55; font-size: .97rem; }
.dg-socials { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.dg-socials a { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
   color: var(--dg); box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .15s; }
.dg-socials a:hover { transform: translateY(-2px); }

.dg-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin: 0 0 12px; padding: 10px 18px;
   background: #fff; border-radius: 14px; font-weight: 700; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.06); border: 2px solid transparent;
   transition: border-color .15s, transform .15s; }
.dg-link:hover { border-color: var(--dg); transform: translateY(-1px); }
.dg-link-shop { background: var(--dg); color: #fff !important; }
.dg-section { font-size: 1rem; margin: 24px 4px 10px; color: #4b5563; }
.dg-products { display: flex; flex-direction: column; gap: 12px; }
.dg-card { display: flex; align-items: center; gap: 12px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.06);
   transition: transform .15s, box-shadow .15s; }
.dg-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.dg-card img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; background: #f3f4f6; }
.dg-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dg-card-body b { font-size: 1rem; line-height: 1.3; }
.dg-card-body small { color: #6b7280; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-card-go { color: #9ca3af; }
.dg-price { font-weight: 700; color: var(--dg, #1d8f33); }
.dg-price s { color: #9ca3af; font-weight: 500; font-size: .85em; margin-left: 6px; }
.dg-empty { text-align: center; color: #6b7280; }
.dg-share { text-align: center; margin: 26px 0 8px; }
.dg-share button { border: 1px solid #d1d5db; background: #fff; border-radius: 20px; padding: 9px 18px; font: inherit; font-weight: 700; cursor: pointer; color: #374151; }
.dg-made { text-align: center; padding: 18px; font-size: .85rem; color: #6b7280; }
.dg-made a { color: #6b7280; }

/* produk */
.dg-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #4b5563 !important; margin-bottom: 14px; }
.dg-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; background: #fff; border-radius: 20px; padding: 18px;
   box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.dg-cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; background: #f3f4f6; }
.dg-tag { display: inline-block; padding: 3px 10px; border-radius: 12px; background: var(--dg-soft); color: var(--dg); font-size: .78rem; font-weight: 700; }
.dg-product h1 { font-size: 1.6rem; line-height: 1.25; margin: 10px 0 8px; }
.dg-price-lg { font-size: 1.5rem; }
.dg-off { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 8px; background: #fdeceb; color: #d93025; font-size: .8rem; }
.dg-summary { color: #4b5563; line-height: 1.6; }
.dg-facts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; color: #4b5563; font-size: .92rem; }
.dg-facts i { color: var(--dg); font-size: 20px; margin-right: 4px; }
.dg-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.dg-grid > section { background: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.dg-grid > section:only-child { grid-column: 1 / -1; }
.dg-grid h2 { font-size: 1.1rem; margin: 0 0 12px; }
.dg-content { line-height: 1.7; color: #374151; overflow-wrap: anywhere; }
.dg-content img { max-width: 100%; height: auto; border-radius: 10px; }
.dg-content a { color: var(--dg); text-decoration: underline; }
.dg-buy { position: sticky; top: 14px; }
.dg-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.dg-form label small { font-weight: 500; color: #6b7280; }
.dg-form input[type=text], .dg-form input[type=email], .dg-form input[type=tel] { display: block; width: 100%; box-sizing: border-box; height: 46px; margin-top: 5px;
   padding: 0 12px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; }
.dg-form input:focus { outline: none; border-color: var(--dg); box-shadow: 0 0 0 3px var(--dg-soft); }
.dg-err { display: block; color: #d93025; font-size: .85rem; margin: -6px 0 10px; }
.dg-alert { background: #fdeceb; color: #b3261e; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.dg-hp { position: absolute; left: -9999px; }
.dg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border: 0; border-radius: 25px; cursor: pointer;
   background: var(--dg, #27b441); color: #fff !important; font: inherit; font-size: 1.02rem; font-weight: 700; box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.dg-note { font-size: .82rem; color: #6b7280; margin: 10px 0 0; line-height: 1.5; }
@media (max-width: 720px) {
   .dg-product, .dg-grid { grid-template-columns: 1fr; }
   .dg-buy { position: static; order: -1; }
   .dg-product h1 { font-size: 1.35rem; }
}

/* ---------- katalog (/digital, di dalam tata letak situs) ---------- */
.dgk { --dg: #27b441; --dg-soft: #e9f8ec; max-width: 1240px; width: 92%; margin: 18px auto 40px; color: #1f2933; }
.dgk-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 28px; border-radius: 20px; color: #fff;
   background: linear-gradient(115deg, #0f481b, #1b7a35); }
.dgk-hero h1 { margin: 6px 0; font-size: 1.9rem; font-weight: 700; }
.dgk-hero p { margin: 0; color: #d5f3dc; max-width: 640px; line-height: 1.55; }
.dgk-tag { display: inline-block; padding: 3px 10px; border-radius: 12px; background: rgba(255,255,255,.15); color: #bdf5c6; font-size: .8rem; font-weight: 700; }
.dgk-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 24px; background: #fff; color: #1d8f33 !important; font-weight: 700; }
.dgk-search { margin: 18px 0 10px; }
.dgk-search input[type=search] { box-sizing: border-box; width: 100%; height: 46px !important; margin: 0 !important; padding: 0 16px !important; border: 1px solid #e5e7eb !important;
   border-radius: 23px !important; background: #fff !important; box-shadow: none !important; font-size: 1rem; }
.dgk-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.dgk-cats a { flex: none; padding: 7px 14px; border-radius: 18px; background: #fff; border: 1px solid #e5e7eb; color: #374151; font-size: .9rem; }
.dgk-cats a.active { background: #27b441; border-color: #27b441; color: #fff; }
.dgk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.dgk-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; color: inherit !important;
   box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px #edf0ee; transition: transform .15s, box-shadow .15s; }
.dgk-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.1); }
.dgk-img { aspect-ratio: 1 / 1; background: #f3f4f6; }
.dgk-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dgk-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.dgk-body b { font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dgk-body small { color: #6b7280; font-size: .8rem; }
.dgk-empty { text-align: center; color: #6b7280; padding: 40px 0; }
.dgk-pager { display: flex; justify-content: center; gap: 16px; align-items: center; margin-top: 20px; color: #6b7280; }
.dgk-pager a { color: #1d8f33; font-weight: 700; }
@media (max-width: 600px) {
   .dgk { width: auto; margin: 10px .75rem 30px; }
   .dgk-hero { padding: 20px; } .dgk-hero h1 { font-size: 1.5rem; }
   .dgk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- halaman pesanan ---------- */
.dgo { --dg: #27b441; max-width: 640px; margin: 18px auto 40px; padding: 0 .75rem; color: #1f2933; }
.dgo-card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px #edf0ee; }
.dgo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dgo-head small { color: #6b7280; }
.dgo-head h1 { font-size: 1.3rem; margin: 2px 0 0; font-weight: 700; }
.dgo-status { padding: 4px 12px; border-radius: 14px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.dgo-status.s-menunggu_pembayaran { background: #fff4e5; color: #b45f06; }
.dgo-status.s-menunggu_verifikasi { background: #e8f1fd; color: #1d6fe0; }
.dgo-status.s-lunas { background: #e9f8ec; color: #1d8f33; }
.dgo-status.s-dibatalkan { background: #f1f1f1; color: #6b7280; }
.dgo-flash { margin-top: 12px; background: #f1faf3; border: 1px solid #cfe9d5; color: #1d6b2e; border-radius: 10px; padding: 10px 12px; }
.dgo-item { display: flex; gap: 12px; align-items: center; margin: 16px 0; padding: 12px; background: #f9fbfa; border-radius: 12px; }
.dgo-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.dgo-item small { display: block; color: #6b7280; margin-top: 2px; }
.dgo-box { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; line-height: 1.5; }
.dgo-box p { margin: 2px 0 0; }
.dgo-ok { background: #e9f8ec; color: #1d6b2e; }
.dgo-bad { background: #fdeceb; color: #9f2a21; }
.dgo-wait { background: #eef5ff; color: #1a4f9c; }
.dgo-pay { border: 1px dashed #cfd8d2; border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.dgo-pay small { color: #6b7280; }
.dgo-total { font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
.dgo-copy { border: 1px solid #d1d5db; background: #fff; border-radius: 14px; padding: 4px 10px; font: inherit; font-size: .8rem; cursor: pointer; }
.dgo-banks { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.dgo-bank { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 12px; background: #f9fbfa; border-radius: 10px; }
.dgo-bank span { font-size: 1.1rem; font-weight: 700; letter-spacing: .03em; }
.dgo-bank small { grid-column: 2; }
.dgo-bank .dgo-copy { grid-row: 1 / span 2; grid-column: 3; }
/* QRIS: poster resmi memuat logo dan teks, jadi gambarnya dibuat selebar kotak supaya kode QR-nya cukup besar untuk dipindai */
.dgo-qris { display: block; text-align: center; }
.dgo-qris > b { display: block; text-align: left; }
.dgo-qris img { display: block; width: 100%; max-width: 320px; height: auto; margin: 10px auto; border-radius: 8px; }
.dgo-qris p { text-align: left; margin: 6px 0 10px; }
.dgo-qris .dgo-save { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 22px;
	border: 1px solid #17722a; color: #17722a; font-weight: 700; text-decoration: none; }
.dgo-qris .dgo-save:focus-visible { outline: 3px solid #17722a; outline-offset: 2px; }
.dgo-muted { color: #6b7280; font-size: .88rem; }
.dgo-proof { display: flex; flex-direction: column; gap: 10px; }
.dgo-proof input[type=file] { display: block; margin-top: 6px; }
.dgo-dl { margin: 6px 0 10px; }
.dgo-keep { margin: 16px 0 0; }
.dgo a { color: #1d8f33; }
.dgo .dg-btn { color: #fff !important; }
