/* ==========================================================================
   Digital store (store.renaldihairil.my.id). Uses the tokens of site.css.
   A single centred column that reads like a link-in-bio page on a phone.
   ========================================================================== */

/* accent colour chosen in the admin (Toko Digital -> Tampilan); "lime" = site.css default */
html[data-accent="blue"] { --ac: oklch(0.78 0.14 245); --act: oklch(0.78 0.14 245); }
html[data-accent="blue"][data-theme="light"] { --act: oklch(0.5 0.17 250); }
html[data-accent="orange"] { --ac: oklch(0.8 0.16 55); --act: oklch(0.8 0.16 55); }
html[data-accent="orange"][data-theme="light"] { --act: oklch(0.55 0.17 50); }
html[data-accent="pink"] { --ac: oklch(0.8 0.15 350); --act: oklch(0.8 0.15 350); }
html[data-accent="pink"][data-theme="light"] { --act: oklch(0.55 0.2 355); }
html[data-accent="purple"] { --ac: oklch(0.78 0.14 295); --act: oklch(0.78 0.14 295); }
html[data-accent="purple"][data-theme="light"] { --act: oklch(0.5 0.19 295); }
html[data-accent="yellow"] { --ac: oklch(0.9 0.17 95); --act: oklch(0.9 0.17 95); }
html[data-accent="yellow"][data-theme="light"] { --act: oklch(0.55 0.13 85); }

.st { max-width: 640px; margin: 0 auto; padding: 0 0 calc(40px + env(safe-area-inset-bottom)); position: relative; }
.st h1, .st h2 { margin: 0; font-weight: 500; letter-spacing: -0.03em; }

/* ---- profile header ------------------------------------------------------ */
.st-hero { position: relative; }
.st-cover { aspect-ratio: 3 / 1; background: repeating-linear-gradient(135deg, var(--card) 0 12px, var(--card2) 12px 24px); overflow: hidden; }
.st-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 680px) { .st-cover { border-radius: 0 0 28px 28px; } }
.st-theme { position: absolute; top: 14px; right: 14px; background: var(--bgt); backdrop-filter: blur(8px); }
.st-id { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0 24px 8px; margin-top: -48px; position: relative; }
.st-avatar { width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--bg); background: var(--card2); overflow: hidden; display: grid; place-items: center; font: 500 28px var(--mono); color: var(--act); }
.st-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-id h1 { font-size: calc(38px * var(--ts)); }
.st-id p { margin: 0; color: var(--mu); font-size: calc(18px * var(--ts)); line-height: 1.5; max-width: 460px; text-wrap: pretty; }
.st-soc { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.st-soc a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bd3); display: grid; place-items: center; color: var(--fg); }
.st-soc a:hover { border-color: var(--act); color: var(--act); }
.st-soc svg { width: 18px; height: 18px; }

/* ---- list ---------------------------------------------------------------- */
.st-list { padding: 24px 18px 8px; display: flex; flex-direction: column; gap: 12px; }
.st-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.st-chips::-webkit-scrollbar { display: none; }
.st-item {
  display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--bd); background: var(--card);
  border-radius: 22px; transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.st-item:hover { border-color: var(--act); background: var(--card2); color: var(--fg); }
.st-item[hidden] { display: none; }
.st-item .im { width: 84px; height: 84px; border-radius: 16px; flex: none; overflow: hidden; background: repeating-linear-gradient(135deg, var(--card) 0 10px, var(--card2) 10px 20px); }
.st-item .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-item .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.st-item .tx b { font-size: calc(18px * var(--ts)); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.st-item .tx small { color: var(--mu); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-item .tx em { font: 500 calc(15px * var(--ts)) var(--mono); font-style: normal; color: var(--act); }
.st-item .tx em i { color: var(--fa); font-style: normal; font-weight: 400; }
.st-item .go { color: var(--fa); font-size: 20px; padding-right: 6px; }
.st-item:hover .go { color: var(--act); }
.st-empty { text-align: center; color: var(--mu); padding: 48px 12px; margin: 0; grid-column: 1 / -1; }
.st-items { display: flex; flex-direction: column; gap: 12px; }
.st-item .im { position: relative; }
.st-list.is-list .st-cat.in-row { font-size: 11px; padding: 5px 9px 5px 7px; }

/* layout "grid": two cards per row, the cover is the star */
.st-list.is-grid .st-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.st-list.is-grid .st-item { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: 20px; }
.st-list.is-grid .st-item .im { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.st-list.is-grid .st-cat.on-img { display: inline-flex; }
.st-list.is-grid .st-cat.in-row { display: none; }
.st-list.is-grid .st-item .tx { padding: 12px 14px 14px; gap: 6px; flex: 1; justify-content: space-between; }
.st-list.is-grid .st-item .tx b { font-size: calc(16px * var(--ts)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-list.is-grid .st-item .tx small, .st-list.is-grid .st-item .go { display: none; }

/* ---- product page -------------------------------------------------------- */
.st-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.st-bar .back { font: 400 14px var(--mono); color: var(--mu); }
.st-bar .back:hover { color: var(--act); }
.st-prod { padding: 0 18px; display: flex; flex-direction: column; gap: 22px; padding-bottom: 96px; }
/* slider: native scroll-snap, so swipe works everywhere; buttons and dots are an extra */
.st-slider { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--bd); background: var(--card2); }
.st-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; outline: 0; }
.st-track::-webkit-scrollbar { display: none; }
.st-track:focus-visible { outline: 2px solid var(--act); outline-offset: -2px; }
.st-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, var(--card) 0 12px, var(--card2) 12px 24px); position: relative; }
.st-slide img, .st-slide iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.st-video { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; background: #000; }
.st-video img { object-fit: cover; opacity: 0.92; }
.st-video .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--ac); color: var(--on-ac); display: grid; place-items: center; font-size: 22px; padding-left: 4px; box-shadow: 0 6px 24px #0008; transition: transform 0.15s; }
.st-video:hover .play { transform: scale(1.08); }
.st-video:focus-visible { outline: 2px solid var(--act); outline-offset: -4px; }
.st-nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 0; background: #000a; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; backdrop-filter: blur(4px); }
.st-nav:hover { background: var(--ac); color: var(--on-ac); }
.st-nav.prev { left: 10px; } .st-nav.next { right: 10px; }
.st-nav[disabled] { opacity: 0; pointer-events: none; }
.st-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.st-dots button { pointer-events: auto; width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #fff8; cursor: pointer; transition: width 0.18s, background 0.18s; box-shadow: 0 0 0 1px #0004; }
.st-dots button.on { width: 22px; border-radius: 999px; background: var(--ac); }
.st-count { position: absolute; top: 12px; right: 12px; font: 500 12px var(--mono); background: #000a; color: #fff; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 480px) { .st-nav { display: none; } }
.st-pbody { display: flex; flex-direction: column; gap: 14px; }
/* category label: soft accent tint with a tag icon (glass pill on top of a cover) */
.st-cat {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 500 12px var(--mono); line-height: 1; padding: 6px 11px 6px 9px; border-radius: 999px;
  color: var(--act); background: color-mix(in oklab, var(--ac) 16%, transparent); border: 1px solid color-mix(in oklab, var(--ac) 42%, transparent);
}
.st-cat svg { flex: none; width: 13px; height: 13px; }
.st-cat.big { font-size: 13px; padding: 8px 14px 8px 11px; }
.st-cat.big svg { width: 15px; height: 15px; }
.st-cat.on-img { display: none; position: absolute; top: 8px; left: 8px; background: #0009; color: var(--ac); border-color: #fff2; backdrop-filter: blur(6px); }
.st-item .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.st-pbody h1 { font-size: calc(34px * var(--ts)); line-height: 1.1; }
.st-price { font: 500 calc(22px * var(--ts)) var(--mono); color: var(--act); }
.st-share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.st-share .lbl { font: 400 13px var(--mono); color: var(--fa); margin-right: 4px; }
.st-ic { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--bd3); background: transparent; color: var(--fg); display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.st-ic:hover { border-color: var(--act); color: var(--act); }
.st-ic svg { width: 19px; height: 19px; }
.st-ic[hidden] { display: none; }
.st-ic.done { background: var(--ac); border-color: var(--ac); color: var(--on-ac); }
.st-msg { font: 400 12px var(--mono); color: var(--act); min-height: 1em; }
.st-desc { color: var(--mu); font-size: calc(18px * var(--ts)); line-height: 1.65; text-wrap: pretty; }
.st-inc { border: 1px solid var(--bd); background: var(--card); border-radius: 20px; padding: 18px 20px; }
.st-inc h2 { font: 400 13px var(--mono); color: var(--fa); letter-spacing: 0; margin-bottom: 10px; }
.st-inc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.st-inc li { padding-left: 24px; position: relative; font-size: calc(17px * var(--ts)); line-height: 1.45; }
.st-inc li::before { content: "✓"; position: absolute; left: 0; color: var(--act); font-weight: 700; }
.st-more { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.st-more h2 { font: 400 13px var(--mono); color: var(--fa); letter-spacing: 0; }

.st-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 640px; margin: 0 auto; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: var(--bgt); backdrop-filter: blur(14px); border-top: 1px solid var(--bd);
}
.st-buy small { display: block; font: 400 12px var(--mono); color: var(--fa); }
.st-buy b { font: 500 calc(20px * var(--ts)) var(--mono); }
.st-buy .btn { padding: 14px 24px; }

.st-ft { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 28px 18px 8px; font: 400 12px var(--mono); color: var(--fa); }
.st-ft a { color: var(--fa); }
.st-ft a:hover { color: var(--act); }

/* ---- checkout and order pages -------------------------------------------- */
.st-page { padding: 0 18px 40px; display: flex; flex-direction: column; gap: 18px; }
.st-page h1 { font-size: calc(30px * var(--ts)); line-height: 1.15; }
.st-page h2 { font: 400 13px var(--mono); color: var(--fa); letter-spacing: 0; margin-top: 8px; }
.st-sum { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--bd); background: var(--card); border-radius: 20px; }
.st-sum .im { width: 72px; height: 54px; border-radius: 12px; overflow: hidden; flex: none; background: repeating-linear-gradient(135deg, var(--card) 0 10px, var(--card2) 10px 20px); }
.st-sum .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-sum .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.st-sum .tx b { font-size: calc(17px * var(--ts)); font-weight: 500; line-height: 1.3; }
.st-sum .tx em, .st-sum .amt { font: 500 calc(16px * var(--ts)) var(--mono); font-style: normal; color: var(--act); }
.st-sum .tx small { color: var(--mu); font-size: 14px; }
.st-form { display: flex; flex-direction: column; gap: 16px; }
.st-field { display: flex; flex-direction: column; gap: 7px; }
.st-field > span { font: 400 13px var(--mono); color: var(--mu); }
.st-field .req { color: #e5604d; font-style: normal; margin-left: 3px; }
.st-field .opt { color: var(--fa); font-style: normal; }
.st-field input, .st-field textarea { background: var(--card); border: 1px solid var(--bd3); border-radius: 12px; padding: 14px 15px; color: var(--fg); font: 400 calc(17px * var(--ts)) var(--sans); outline: 0; width: 100%; }
.st-field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.st-field input:focus, .st-field textarea:focus { border-color: var(--ac); }
.st-field .bad { border-color: #e5604d; }
.st-field .err { font: 400 13px var(--mono); color: #e5604d; }
.st-field .hint { font-size: 13px; color: var(--fa); }
.st-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.st-submit { width: 100%; padding: 16px; }
.st-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fa); text-align: center; }
.st-info { margin: 0; padding: 14px 16px; border: 1px solid var(--bd); border-radius: 16px; background: var(--card); color: var(--mu); font-size: calc(16px * var(--ts)); line-height: 1.55; }
.st-info.ok { border-color: color-mix(in oklab, var(--ac) 50%, transparent); color: var(--fg); }
.st-code { display: flex; flex-direction: column; gap: 2px; }
.st-code small { font: 400 12px var(--mono); color: var(--fa); }
.st-code b { font: 500 calc(20px * var(--ts)) var(--mono); letter-spacing: 0.04em; color: var(--act); }
.st-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.st-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--fa); }
.st-steps li i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--bd3); display: grid; place-items: center; font: 500 13px var(--mono); font-style: normal; }
.st-steps li.done, .st-steps li.current { color: var(--fg); }
.st-steps li.current i { border-color: var(--ac); color: var(--act); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ac) 22%, transparent); }
.st-info.warn { border-color: #e5604d; color: var(--fg); background: color-mix(in oklab, #e5604d 10%, var(--card)); }
.st-field select { background: var(--card); border: 1px solid var(--bd3); border-radius: 12px; padding: 14px 15px; color: var(--fg); font: 400 calc(17px * var(--ts)) var(--sans); outline: 0; width: 100%; }
.st-field select:focus { border-color: var(--ac); }
.st-field input[type="file"] { padding: 11px 12px; font-size: 15px; }
.st-field input[type="file"]::file-selector-button { margin-right: 12px; border: 1px solid var(--bd3); background: var(--card2); color: var(--fg); border-radius: 999px; padding: 8px 14px; font: 500 13px var(--mono); cursor: pointer; }
.st-steps li.done i { background: var(--ac); border-color: var(--ac); color: var(--on-ac); }
.st-pay { display: flex; flex-direction: column; gap: 12px; }
.st-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--ac); border-radius: 16px; background: color-mix(in oklab, var(--ac) 10%, transparent); }
.st-total b { font: 500 calc(24px * var(--ts)) var(--mono); }
.st-copy { border: 1px solid var(--bd3); background: transparent; color: var(--fg); border-radius: 999px; padding: 8px 16px; font: 500 13px var(--mono); cursor: pointer; flex: none; }
.st-copy:hover { border-color: var(--act); color: var(--act); }
.st-copy.done { background: var(--ac); border-color: var(--ac); color: var(--on-ac); }
.st-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.st-pick { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--bd3); background: var(--card); color: var(--fg); border-radius: 16px; cursor: pointer; font: inherit; transition: border-color 0.15s, background 0.15s; }
.st-pick b { font-size: calc(17px * var(--ts)); font-weight: 500; }
.st-pick small { font: 400 12px var(--mono); color: var(--fa); }
.st-pick:hover { border-color: var(--act); }
.st-pick.on { border-color: var(--ac); background: color-mix(in oklab, var(--ac) 12%, var(--card)); box-shadow: 0 0 0 1px var(--ac); }
.st-pick.on small { color: var(--act); }
.st-pick:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
.st-pick-hint { display: none; font-size: 14px; }
.js-pick .st-method:not(.on) { display: none; }
.js-pick .st-pick-hint { display: block; }
.js-pick .st-pick-hint.off { display: none; }
.st-method { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--bd); background: var(--card); border-radius: 18px; }
.st-method .hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.st-method .hd b { font-size: calc(18px * var(--ts)); font-weight: 500; }
.st-method .hd span { font: 400 12px var(--mono); color: var(--fa); }
.st-method .no { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-method .no code { font: 500 calc(19px * var(--ts)) var(--mono); letter-spacing: 0.02em; word-break: break-all; }
.st-method small { color: var(--mu); font-size: 14px; }
.st-method .qr { width: 220px; max-width: 100%; height: auto; border-radius: 12px; background: #fff; padding: 8px; align-self: center; }
