/* toko.css — tambahan khusus halaman /toko bioproargi.id (MOCKUP).
   Hanya memakai variabel & pola dari situs.css (palet "Herbal Bersih", Fraunces + Plus Jakarta Sans). */

.tk-hal main{padding-top:76px}
.tk-hal .nav{background:rgba(246,243,236,.92)}
.nav-right{gap:10px}
.tk-tas{position:relative;width:48px;height:48px;border-radius:50%;border:1px solid var(--line);background:var(--paper);display:grid;place-items:center;color:var(--ink);transition:border-color .2s}
.tk-tas:hover,.tk-tas:focus-visible{border-color:var(--emerald)}
.tk-tas svg{width:24px;height:24px}
.tk-lencana{position:absolute;top:-4px;right:-4px;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:var(--gold);color:var(--ink);font-size:14px;font-weight:700;line-height:24px;text-align:center;box-shadow:0 0 0 2px var(--paper)}
.tk-lencana[hidden]{display:none}
@media(max-width:420px){.tk-nav-wa span{display:none}.tk-hal .nav .tk-nav-wa{padding:12px}.tk-nav-wa svg{width:22px;height:22px}}

/* kepala halaman */
.tk-kepala{padding:28px 0 8px}
.tk-kepala h1{font-size:clamp(34px,8.5vw,60px);margin:14px 0 12px}
.tk-kepala .lead{font-size:17px}
.tk-sec{padding:32px 0 40px}
.tk-sec-2{background:var(--paper-2)}
.tk-h2{font-size:clamp(30px,7vw,44px);margin-bottom:6px}
.tk-lead-kecil{color:var(--ink-soft);margin-bottom:18px}

/* paket: kartu melebar di HP */
.tk-grid-paket{display:grid;gap:22px;margin-top:22px}
.tk-pkg{padding:22px 18px 18px}
.tk-pkg:hover{transform:none}
.tk-pkg .pkg-badge{left:18px}
.tk-pkg-atas{display:grid;grid-template-columns:118px 1fr;gap:14px;align-items:start}
.tk-pkg .pkg-img{margin:0;border-radius:16px}
.tk-pkg h3{font-size:23px;line-height:1.15}
.tk-pkg .pkg-sub{font-size:15px;line-height:1.4}
.tk-pkg .price{margin:10px 0 0;padding:0;border:0}
.tk-pkg .price s{font-size:16px}
.tk-pkg .price b{font-size:30px}
.tk-pkg .price .save{font-size:14px;margin-top:4px}
.tk-isi{margin:14px 0 4px;border-top:1px solid var(--line);padding-top:10px}
.tk-isi summary{cursor:pointer;font-weight:600;color:var(--emerald);font-size:16.5px;min-height:44px;display:flex;align-items:center;list-style:none}
.tk-isi summary::-webkit-details-marker{display:none}
.tk-isi summary::after{content:"+";margin-left:auto;font-size:24px;font-weight:400;line-height:1}
.tk-isi[open] summary::after{content:"\2013"}
.tk-pkg ul{margin:6px 0 4px;gap:8px}
.tk-pkg li{font-size:16px}

/* produk satuan: grid 2 kolom ala marketplace */
.tk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tk-grid .kat-sub{margin:18px 0 0}
.tk-item:hover,.tk-item:focus-within{transform:none}
.tk-item .kat-media{padding:34px 8px 8px}
.tk-item .kat-media picture{inset:38px 12px 10px}
.tk-item .kat-body{padding:12px 12px 12px;gap:4px}
.tk-item .kat-body b{font-size:19px}
.tk-item .kat-body small{font-size:14px}
.tk-item .kat-foot{padding-top:8px;gap:2px}
.tk-item .kat-price{font-size:18px}
.tk-coret{color:var(--ink-mute);font-size:14px}

/* tombol tambah & stepper */
.tk-slot{margin-top:10px}
.tk-tambah{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:50px;border-radius:999px;background:var(--gold);color:var(--ink);font-weight:600;font-size:17px;box-shadow:0 10px 24px -14px rgba(233,167,34,.9);transition:background .2s}
.tk-tambah:hover{background:var(--gold-2)}
.tk-tambah svg{width:20px;height:20px}
.tk-step{display:flex;align-items:center;justify-content:space-between;min-height:50px;border-radius:999px;border:1.5px solid var(--emerald);background:var(--paper);overflow:hidden}
.tk-step button{width:50px;height:50px;display:grid;place-items:center;color:var(--emerald);flex:none}
.tk-step button:hover,.tk-step button:focus-visible{background:var(--emerald-soft)}
.tk-step button:disabled{opacity:.35;cursor:not-allowed}
.tk-step svg{width:22px;height:22px}
.tk-step output{flex:1;text-align:center;font-weight:700;font-size:19px;color:var(--ink)}

/* bilah keranjang bawah */
.tk-bar{position:fixed;left:0;right:0;bottom:0;z-index:55;background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -12px 30px -18px rgba(10,60,40,.35);padding:10px 0 calc(10px + env(safe-area-inset-bottom))}
.tk-bar[hidden]{display:none}
.tk-bar-in{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tk-bar-info{display:flex;flex-direction:column;line-height:1.25}
.tk-bar-info small{font-size:15px;color:var(--ink-soft)}
.tk-bar-info b{font-size:21px;color:var(--emerald)}
.tk-bar .btn{padding:15px 22px}
body.tk-ada-bar footer{padding-bottom:110px}

/* laci keranjang / pembayaran */
.tk-kunci{overflow:hidden}
.tk-laci{border:0;padding:0;margin:auto 0 0;width:100%;max-width:100%;max-height:94vh;max-height:94dvh;background:transparent;color:var(--ink)}
.tk-laci::backdrop{background:rgba(18,36,28,.45);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.tk-laci[open]{animation:tkNaik .3s cubic-bezier(.2,.7,.2,1)}
@keyframes tkNaik{from{transform:translateY(40px);opacity:0}}
.tk-laci-kartu{background:var(--paper);border-radius:24px 24px 0 0;display:flex;flex-direction:column;max-height:94vh;max-height:94dvh;font-size:17px;line-height:1.55}
.tk-laci-kepala{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 12px;border-bottom:1px solid var(--line)}
.tk-laci-judul{font-size:28px}
.tk-laci .dlg-close{position:static;width:48px;height:48px}
.tk-laci-isi{overflow:auto;padding:16px 18px calc(24px + env(safe-area-inset-bottom));overscroll-behavior:contain}
@media(min-width:700px){.tk-laci{margin:auto;width:min(560px,calc(100vw - 32px))}.tk-laci-kartu{border-radius:24px}}

.tk-daftar{list-style:none;display:grid;gap:0}
.tk-baris{display:grid;grid-template-columns:72px 1fr;gap:6px 12px;padding:14px 0;border-bottom:1px solid var(--line)}
.tk-baris img{width:72px;height:72px;object-fit:contain;border-radius:14px;background:radial-gradient(90% 90% at 50% 40%,#F3F9F5,#DCEBE1);padding:4px}
.tk-baris-info b{display:block;font-family:var(--serif);font-weight:500;font-size:20px;line-height:1.2}
.tk-baris-info>span{font-size:15px;color:var(--ink-soft)}
.tk-baris-aksi{display:flex;align-items:center;gap:12px;margin-top:8px}
.tk-baris-aksi .tk-step{width:150px;min-height:46px}
.tk-baris-aksi .tk-step button{height:46px;width:46px}
.tk-hapus{color:var(--ink-mute);text-decoration:underline;text-underline-offset:3px;font-size:15px;min-height:44px;padding:0 4px}
.tk-baris-sub{grid-column:2;font-size:18px;color:var(--ink);text-align:right}
.tk-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:16px 0 18px;font-size:17px}
.tk-total b{font-size:26px;color:var(--emerald)}
.tk-lebar{width:100%;justify-content:center;text-align:center;min-height:56px}
.tk-link{display:block;margin:10px auto 0;color:var(--emerald);font-weight:600;text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:0 10px}
.tk-kosong{text-align:center;padding:26px 6px 10px}
.tk-kosong-ik{display:inline-grid;place-items:center;width:72px;height:72px;border-radius:50%;background:var(--emerald-soft);color:var(--emerald);margin-bottom:12px}
.tk-kosong-ik svg{width:34px;height:34px}
.tk-kosong p{margin-bottom:6px;color:var(--ink-soft)}
.tk-kosong .btn{margin-top:14px}

.tk-kembali{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:16px;color:var(--emerald);min-height:44px;margin-bottom:6px}
.tk-kembali svg{width:20px;height:20px}
.tk-sub{font-family:var(--serif);font-weight:500;font-size:22px;margin:6px 0 8px}
.tk-rinci{width:100%;border-collapse:collapse;font-size:16.5px}
.tk-rinci td,.tk-rinci th{padding:9px 0;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.tk-rinci td:last-child,.tk-rinci th:last-child{text-align:right;white-space:nowrap;padding-left:10px}
.tk-rinci td span{color:var(--ink-mute);white-space:nowrap}
.tk-rinci tfoot th{font-size:19px;border-bottom:0;padding-top:12px}
.tk-rinci tfoot th:last-child{color:var(--emerald);font-size:24px}

.tk-qris{margin:18px 0 18px;padding:18px 16px;border-radius:20px;border:1px solid var(--line);background:#fff;text-align:center}
.tk-qris .tk-sub{margin-top:0}
.tk-qr-nom{font-size:clamp(28px,8vw,34px);font-weight:700;color:var(--emerald);margin:0 0 10px;letter-spacing:-.01em}
.tk-qr-box{background:#fff;border:1px solid var(--line);border-radius:16px;padding:8px;width:min(270px,74vw);margin:0 auto}
.tk-qr-box svg{width:100%;height:auto;aspect-ratio:1;display:block}
.tk-qr-to{margin:10px 0 0;color:var(--ink-soft);font-size:15px}
.tk-qr-to b{color:var(--ink)}
.tk-langkah{text-align:left;margin:12px 4px 0;padding-left:22px;color:var(--ink-soft);font-size:16px}
.tk-langkah li{margin:5px 0}
.tk-catatan{margin:10px 2px 0;font-size:15px;color:var(--ink-mute);text-align:left}
.tk-tengah{text-align:center}
.tk-info-besar{margin:18px 0;padding:16px 16px;border-radius:16px;background:var(--gold-soft);color:var(--ink);border:1px solid rgba(233,167,34,.45)}
.tk-info-besar b{display:block;font-size:18px;line-height:1.4;margin-bottom:6px}
.tk-info-besar p{font-size:16px;color:var(--ink-soft)}

@media(min-width:700px){
  .tk-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .tk-grid-paket{grid-template-columns:repeat(3,1fr);align-items:start}
  .tk-pkg-atas{grid-template-columns:1fr}
  .tk-sec{padding:56px 0}
}
@media(min-width:1000px){.tk-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.tk-laci .btn svg{width:20px;height:20px;flex:none}

/* kartu bisa diklik: nama = tombol yang menutupi seluruh kartu; tombol keranjang & lainnya di atasnya */
.tk-pkg,.tk-item{position:relative;cursor:pointer}
.tk-nama{font:inherit;color:inherit;text-align:left;line-height:inherit;letter-spacing:inherit;padding:0;background:none;border:0;cursor:pointer}
.tk-nama::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}
.tk-nama:focus-visible{outline:none}
.tk-pkg:has(.tk-nama:focus-visible),.tk-item:has(.tk-nama:focus-visible){outline:3px solid var(--emerald);outline-offset:3px}
.tk-slot,.tk-lihat,.tk-item a{position:relative;z-index:2}
.tk-lihat{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;margin:14px 0 2px;padding:10px 0 0;border-top:1px solid var(--line);color:var(--emerald);font-weight:600;font-size:16.5px;text-align:left}
.tk-lihat svg{width:20px;height:20px;flex:none}
.tk-pkg:hover,.tk-item:hover{border-color:var(--emerald)}

/* detail produk: lembar dari bawah (HP), modal (desktop) */
.tk-kunci-det{overflow:hidden}
.tk-detail .tk-laci-kartu{max-height:94vh;max-height:94dvh;background:var(--paper)}
.tk-det-kepala{position:relative;justify-content:flex-end;padding:8px 12px;border-bottom:0;min-height:56px}
.tk-det-pegangan{position:absolute;left:50%;top:8px;width:44px;height:5px;margin-left:-22px;border-radius:9px;background:var(--line-strong,rgba(18,33,26,.22))}
.tk-det-isi{padding-top:0}
.tk-galeri{position:relative;margin:0 -2px 14px}
.tk-galeri-trek{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:22px;background:radial-gradient(90% 90% at 50% 40%,#F3F9F5,#D3E7DA)}
.tk-galeri-trek::-webkit-scrollbar{display:none}
.tk-galeri-trek:focus-visible{outline:3px solid var(--emerald);outline-offset:2px}
.tk-galeri-foto{flex:0 0 100%;scroll-snap-align:center;aspect-ratio:1/1;display:grid;place-items:center;margin:0;padding:6%}
.tk-galeri-foto picture{display:contents}
.tk-galeri-foto img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(10,60,40,.22))}
.tk-galeri-titik{display:flex;justify-content:center;gap:4px;margin-top:6px}
.tk-galeri-titik button{width:32px;height:32px;display:grid;place-items:center}
.tk-galeri-titik button::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--line-strong,rgba(18,33,26,.22));transition:background .2s,transform .2s}
.tk-galeri-titik button[aria-current]::before{background:var(--emerald);transform:scale(1.25)}
.tk-det-kicker{display:inline-block;font-size:14.5px;font-weight:600;color:var(--emerald);background:var(--emerald-soft);padding:4px 12px;border-radius:999px}
.tk-det-judul{font-size:clamp(28px,7.5vw,38px);line-height:1.12;margin:10px 0 4px}
.tk-det-sub p{margin:0 0 4px;color:var(--ink-soft);font-size:17px}
.tk-det-sub .det-tagline{color:var(--emerald);font-weight:600;font-size:18px;margin:0}
.tk-det-harga{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:12px 0 10px}
.tk-det-harga b{font-family:var(--serif);font-weight:500;font-size:34px;color:var(--emerald);line-height:1.1}
.tk-det-harga s{color:var(--ink-mute);font-size:17px}
.tk-det-harga span{flex-basis:100%;font-size:15px;font-weight:600;color:var(--gold-ink)}
.tk-det-bpom{list-style:none;display:grid;gap:6px;font-size:15.5px;padding:12px 14px;border:1.5px solid var(--line);border-radius:16px;margin:0 0 6px}
.tk-det-bpom a{color:var(--emerald);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.tk-det-bpom span{color:var(--ink-mute)}
.tk-det-berlaku{display:block;font-size:14.5px}
.tk-detail .det-fn{font-size:17px;margin:14px 0 0}
.tk-detail .det-h{font-size:18px}
.tk-detail .det-list li{font-size:17px}
.tk-detail .det-list li.gift{color:var(--gold-ink);font-weight:600}
.tk-detail .det-list li.gift svg{color:var(--gold-2)}
.tk-det-ke{color:var(--ink);text-align:left;text-decoration:underline;text-decoration-color:var(--line-strong,rgba(18,33,26,.3));text-underline-offset:4px;min-height:32px;font-size:17px}
.tk-det-teks{margin:16px 0 4px;font-size:16px;color:var(--ink-soft)}
.tk-det-link{color:var(--emerald);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.tk-det-kaki{border-top:1px solid var(--line);padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:var(--paper);display:grid;gap:8px}
.tk-det-beli{display:grid;grid-template-columns:132px 1fr;gap:10px}
.tk-det-step{min-height:54px}
.tk-det-step button{width:42px;height:52px}
.tk-det-masuk{justify-content:center;padding:14px 12px;min-height:54px;font-size:16.5px;gap:8px}
.tk-detail .btn svg{width:20px;height:20px;flex:none}
.tk-det-wa{min-height:48px;padding:10px 16px}
.tk-det-ok{margin:0;font-size:15.5px;color:var(--emerald);font-weight:600;text-align:center}
.tk-det-ok button{color:var(--emerald);text-decoration:underline;text-underline-offset:3px;font-weight:700;min-height:36px;padding:0 4px}
.tk-det-ada{color:var(--ink-soft);font-weight:500}
@media(min-width:760px){
  .tk-detail{width:min(920px,calc(100vw - 40px))}
  .tk-detail .tk-det-isi{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:28px;align-items:start}
  .tk-detail .tk-galeri{position:sticky;top:0}
  .tk-det-kaki{grid-template-columns:1fr auto;align-items:center}
  .tk-det-ok{grid-column:1/-1}
  .tk-det-wa{width:auto}
}
.tk-det-masuk{white-space:nowrap}
@media(max-width:759px){.tk-galeri-foto{aspect-ratio:auto;height:clamp(220px,42vh,400px)}}
@media(max-width:420px){.tk-det-beli{grid-template-columns:120px 1fr;gap:8px}.tk-det-step button{width:38px}.tk-det-masuk svg{display:none}.tk-det-masuk{padding:10px 8px}}
@media(min-width:700px){.tk-det-pegangan{display:none}}

/* galeri geser: panah kiri/kanan, penghitung 1/4 (titik + swipe sudah di atas) */
.tk-galeri-trek{touch-action:pan-x pan-y;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.tk-galeri-panah{position:absolute;top:calc(50% - 19px);transform:translateY(-50%);z-index:2;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:rgba(252,251,247,.94);color:var(--emerald);border:1.5px solid var(--line-strong);box-shadow:0 6px 16px rgba(10,60,40,.18);transition:opacity .2s,background .2s}
.tk-galeri-panah svg{width:22px;height:22px}
.tk-galeri-kiri{left:8px}.tk-galeri-kanan{right:8px}
.tk-galeri-panah:hover,.tk-galeri-panah:focus-visible{background:var(--emerald);color:#fff;outline:none}
.tk-galeri-panah:disabled{opacity:0;pointer-events:none}
.tk-galeri-hitung{position:absolute;top:10px;right:10px;z-index:2;padding:3px 10px;border-radius:999px;background:rgba(18,33,26,.72);color:#fff;font-size:14px;font-weight:600;line-height:1.5;font-variant-numeric:tabular-nums}
.tk-galeri-hitung b{font-weight:700}
@media(min-width:760px){.tk-galeri-panah{width:52px;height:52px}.tk-galeri-panah svg{width:26px;height:26px}.tk-galeri-kiri{left:12px}.tk-galeri-kanan{right:12px}}
/* foto selalu utuh di bingkai (foto label yang tinggi tidak terpotong) */
.tk-galeri-foto{position:relative;overflow:hidden}
.tk-galeri-foto img{position:absolute;inset:0;box-sizing:border-box;padding:inherit;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}
