@import url('./dashboard.css');

/* ================================================================
   FERPEDIA — HALAMAN PRODUK (Luxury Digital Marketplace)
   Natural Navy & White. Navigasi bawah memakai floating-nav.css.
   Struktur: tokens > base > header > search > kategori > grid kartu >
             detail > struk > pantau/riwayat > skeleton > responsive
   ================================================================ */

:root {
  --pk-deep:  #102A43;
  --pk-navy:  #163B5C;
  --pk-blue:  #28577A;
  --pk-soft:  #EAF2F8;
  --pk-off:   #F7F9FC;
  --pk-line:  #DFE7EF;
  --pk-text:  #172B3A;
  --pk-text2: #647789;
  --pk-ease:  cubic-bezier(.22, .8, .24, 1);
  --pk-hdr:   64px;
  --pk-nav-space: calc(66px + 14px + 30px + env(safe-area-inset-bottom, 0px));
  --pk-shadow: 0 1px 2px rgba(16,42,67,.04), 0 6px 18px -10px rgba(16,42,67,.10);
}

/* ─── BASE ────────────────────────────────────────────────────────────────── */
body {
  max-width: 1080px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--pk-off);
  color: var(--pk-text);
}
button, input { font-family: inherit; }
a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--pk-blue); outline-offset: 2px; border-radius: 10px; }

/* ─── HEADER ──────────────────────────────────────────────────────────────── */
.pk-header {
  position: sticky; top: 0; z-index: 50;
  height: calc(var(--pk-hdr) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(247,249,252,.96);
  border-bottom: 1px solid var(--pk-line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .pk-header { background: rgba(247,249,252,.80); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
}
.pk-hl { display: flex; align-items: center; gap: 12px; min-width: 0; }

.pk-back {
  width: 38px; height: 38px; min-width: 38px; border-radius: 12px; flex-shrink: 0;
  display: none; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--pk-line); color: var(--pk-text2);
  transition: transform .15s var(--pk-ease), color .2s, background .2s;
}
.pk-back:hover { color: var(--pk-navy); background: var(--pk-soft); }
.pk-back:active { transform: scale(.92); }
.pk-back svg { width: 20px; height: 20px; display: block; }

.pk-logo {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px var(--pk-line);
}
.pk-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pk-titles { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pk-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; color: var(--pk-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-sub   { font-size: .72rem; font-weight: 500; color: var(--pk-text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }

.pk-iconbtn {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--pk-line); color: var(--pk-navy);
  transition: transform .15s var(--pk-ease), background .2s, border-color .2s;
}
.pk-iconbtn:hover { background: var(--pk-soft); border-color: rgba(40,87,122,.35); }
.pk-iconbtn:active { transform: scale(.92); }

/* View non-daftar: tampilkan tombol kembali, sembunyikan logo/deskripsi/cari */
body[data-view]:not([data-view="viewList"]) .pk-back { display: inline-flex; }
body[data-view]:not([data-view="viewList"]) .pk-logo,
body[data-view]:not([data-view="viewList"]) .pk-sub,
body[data-view]:not([data-view="viewList"]) .pk-iconbtn { display: none; }

/* ─── PANDUAN VIDEO (lebih ringkas, fitur tetap) ──────────────────────────── */
body .vguide-bar { margin: 12px 16px 0; padding: 10px 12px; background: #fff; border-color: var(--pk-line); border-radius: 18px; box-shadow: var(--pk-shadow); }

/* ─── SEARCH ──────────────────────────────────────────────────────────────── */
.search-bar {
  position: sticky; top: calc(var(--pk-hdr) + env(safe-area-inset-top, 0px)); z-index: 40;
  padding: 12px 16px 8px; background: var(--pk-off); border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.search-input-wrap { position: relative; }
.search-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--pk-text2); pointer-events: none; display: flex; align-items: center;
  transition: color .2s;
}
.search-icon svg { width: 18px; height: 18px; display: block; }
.search-input {
  width: 100%; height: 48px; padding: 0 16px 0 44px;
  background: #fff; border: 1px solid var(--pk-line); border-radius: 16px;
  color: var(--pk-text); font-size: 1rem; font-weight: 500;
  outline: none; box-shadow: var(--pk-shadow);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-input:focus { border-color: var(--pk-blue); box-shadow: 0 0 0 4px rgba(40,87,122,.12); }
.search-input-wrap:focus-within .search-icon { color: var(--pk-navy); }
.search-input::placeholder { color: var(--pk-text2); font-weight: 400; }

/* ─── KONTEN ──────────────────────────────────────────────────────────────── */
.produk-content { padding: 8px 16px var(--pk-nav-space); }

/* ─── KATEGORI ────────────────────────────────────────────────────────────── */
.cat-row {
  display: flex; gap: 8px; margin: 0 -16px 8px; padding: 4px 16px 8px;
  overflow-x: auto; overflow-y: hidden; white-space: nowrap;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
}
.cat-row::-webkit-scrollbar { display: none; }
.cat-row[hidden] { display: none; }
.cat-chip {
  flex: 0 0 auto; height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  scroll-snap-align: start;
  background: #fff; color: var(--pk-text2); border: 1px solid var(--pk-line);
  font-size: .8rem; font-weight: 600; letter-spacing: -.005em;
  transition: background .25s var(--pk-ease), color .25s var(--pk-ease), border-color .25s var(--pk-ease), transform .15s var(--pk-ease), box-shadow .25s var(--pk-ease);
}
.cat-chip:hover { color: var(--pk-navy); border-color: rgba(40,87,122,.4); }
.cat-chip:active { transform: scale(.95); }
.cat-chip.active { background: var(--pk-navy); color: #fff; border-color: var(--pk-navy); box-shadow: 0 8px 16px -8px rgba(22,59,92,.55); }

/* ─── JUDUL DAFTAR ────────────────────────────────────────────────────────── */
.produk-list-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 2px 14px; }
.plh-title { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; color: var(--pk-deep); }
.plh-count { font-size: .74rem; font-weight: 600; color: var(--pk-text2); }

/* ─── GRID KARTU PRODUK ───────────────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }

.product-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--pk-line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--pk-shadow); cursor: pointer; text-decoration: none; color: inherit;
  transition: transform .25s var(--pk-ease), box-shadow .25s var(--pk-ease), border-color .25s var(--pk-ease);
  animation: pk-rise .5s var(--pk-ease) both;
  -webkit-tap-highlight-color: transparent;
}
.product-card:hover { transform: translateY(-3px); border-color: rgba(40,87,122,.30); box-shadow: 0 1px 2px rgba(16,42,67,.04), 0 18px 32px -16px rgba(16,42,67,.22); }
.product-card:active { transform: scale(.975); }
.product-card:focus-visible { outline-offset: 3px; border-radius: 22px; }
.product-card:nth-child(2) { animation-delay: .04s; } .product-card:nth-child(3) { animation-delay: .08s; }
.product-card:nth-child(4) { animation-delay: .12s; } .product-card:nth-child(n+5) { animation-delay: .16s; }
@keyframes pk-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Gambar: rasio 1:1 tetap, object-fit: contain → tidak terpotong dan tidak gepeng */
.product-img-wrap {
  position: relative; width: 100%; aspect-ratio: 1 / 1; padding: 18px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: linear-gradient(180deg, #F7F9FC 0%, #EAF2F8 100%);
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 18px;
  transition: transform .4s var(--pk-ease);
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-img-placeholder {
  width: 64px; height: 64px; border-radius: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: #fff;
  box-shadow: 0 10px 20px -10px rgba(22,59,92,.6);
}
.pc-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 4px 9px; border-radius: 999px; background: #fff; color: #B42318;
  font-size: .64rem; font-weight: 700; box-shadow: 0 0 0 1px rgba(180,35,24,.18);
}

.product-info { display: flex; flex-direction: column; flex: 1; padding: 12px 12px 14px; }
.product-cat { font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--pk-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.product-name {
  font-size: .9rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--pk-deep);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em; margin-bottom: 4px;
}
.product-sub { font-size: .7rem; color: var(--pk-text2); }
.product-price { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pp-label { font-size: .64rem; font-weight: 500; color: var(--pk-text2); }
.pp-val { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; color: var(--pk-navy); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-btn {
  margin-top: 12px; height: 38px; border-radius: 13px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--pk-navy); color: #fff; font-size: .76rem; font-weight: 700;
  transition: background .2s, transform .15s var(--pk-ease);
}
.product-btn svg { width: 14px; height: 14px; transition: transform .25s var(--pk-ease); }
.product-card:hover .product-btn { background: var(--pk-deep); }
.product-card:hover .product-btn svg { transform: translateX(3px); }

/* ─── EMPTY STATE ─────────────────────────────────────────────────────────── */
.pk-empty {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 44px 24px; background: #fff; border: 1px dashed rgba(40,87,122,.30); border-radius: 22px;
}
.pk-empty-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 6px; color: var(--pk-blue); background: var(--pk-soft); }
.pk-empty-ic svg { width: 26px; height: 26px; display: block; }
.pk-empty-title { font-size: .98rem; font-weight: 800; color: var(--pk-deep); }
.pk-empty-desc { font-size: .8rem; color: var(--pk-text2); max-width: 260px; line-height: 1.55; }
.pk-empty-btn { margin-top: 12px; height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--pk-line); background: var(--pk-soft); color: var(--pk-navy); font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .2s, transform .15s; }
.pk-empty-btn:active { transform: scale(.96); }

/* ─── SKELETON ────────────────────────────────────────────────────────────── */
.skeleton {
  display: block; border-radius: 8px;
  background: linear-gradient(100deg, rgba(16,42,67,.06) 30%, rgba(16,42,67,.12) 50%, rgba(16,42,67,.06) 70%);
  background-size: 220% 100%; animation: pk-shimmer 1.4s linear infinite;
}
@keyframes pk-shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.pc-sk { pointer-events: none; animation: none; }
.pc-sk .product-img-wrap { background: var(--pk-soft); }
.pc-sk .product-info { padding-top: 14px; }

/* ─── SECTION CARD (Pantau & Riwayat) ─────────────────────────────────────── */
.produk-section {
  background: #fff; border: 1px solid var(--pk-line); border-radius: 22px;
  padding: 18px; margin-bottom: 14px; box-shadow: var(--pk-shadow);
}
.produk-section-title {
  font-size: .9rem; font-weight: 800; letter-spacing: -.01em; color: var(--pk-deep);
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.produk-section-title svg { width: 17px; height: 17px; color: var(--pk-blue); flex-shrink: 0; display: block; }

.pantau-input-row { display: flex; gap: 8px; }
.pantau-input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  background: var(--pk-off); border: 1px solid var(--pk-line); border-radius: 14px;
  color: var(--pk-text); font-size: .9rem; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
.pantau-input:focus { border-color: var(--pk-blue); background: #fff; box-shadow: 0 0 0 4px rgba(40,87,122,.12); }
.pantau-input::placeholder { color: var(--pk-text2); }
.btn-pantau-cari {
  height: 44px; padding: 0 16px; border: none; border-radius: 14px; flex-shrink: 0; cursor: pointer;
  background: var(--pk-navy); color: #fff; font-size: .82rem; font-weight: 700; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s, transform .15s var(--pk-ease);
}
.btn-pantau-cari:hover:not(:disabled) { background: var(--pk-deep); }
.btn-pantau-cari:active:not(:disabled) { transform: scale(.95); }
.btn-pantau-cari:disabled { opacity: .55; cursor: not-allowed; }
.btn-pantau-cari svg { width: 14px; height: 14px; }

.pantau-result { margin-top: 12px; padding: 14px; background: var(--pk-off); border: 1px solid var(--pk-line); border-radius: 16px; display: none; }
.pantau-result.visible { display: block; }
.pantau-result-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 8px; }
.pantau-result-row:last-child { margin-bottom: 0; }
.pantau-result-row .key { font-size: .75rem; color: var(--pk-text2); flex-shrink: 0; }
.pantau-result-row .val { font-size: .78rem; font-weight: 600; text-align: right; word-break: break-all; flex: 1; }
.pantau-akun { margin-top: 10px; padding: 10px 12px; background: rgba(31,122,77,.08); border: 1px solid rgba(31,122,77,.2); border-radius: 12px; }
.pantau-akun-row { font-size: .78rem; margin-bottom: 4px; color: #1F7A4D; line-height: 1.5; word-break: break-all; }
.pantau-akun-row:last-child { margin-bottom: 0; }
.pantau-wa {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 10px;
  background: rgba(31,122,77,.08); border: 1px solid rgba(31,122,77,.2); border-radius: 12px; text-decoration: none;
  color: #1F7A4D; font-size: .8rem; font-weight: 700; transition: background .2s;
}
.pantau-wa svg { width: 15px; height: 15px; flex-shrink: 0; }
.pantau-wa:hover { background: rgba(31,122,77,.16); }
.pantau-msg { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px; font-size: .82rem; color: var(--pk-text2); line-height: 1.5; }
.pantau-msg svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--pk-blue); }

.riwayat-mini-list { display: flex; flex-direction: column; gap: 8px; }
.riwayat-mini-item {
  background: var(--pk-off); border: 1px solid var(--pk-line); border-radius: 16px; padding: 11px 12px;
  display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; color: var(--pk-text);
  transition: border-color .2s, background .2s, transform .15s var(--pk-ease);
}
.riwayat-mini-item:hover { border-color: rgba(40,87,122,.30); background: #fff; }
.riwayat-mini-item:active { transform: scale(.985); }
.rmi-icon { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; background: var(--pk-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rmi-icon img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.rmi-icon svg { width: 17px; height: 17px; color: var(--pk-blue); display: block; }
.rmi-info { flex: 1; min-width: 0; }
.rmi-name { font-size: .84rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmi-date { font-size: .68rem; color: var(--pk-text2); margin-top: 2px; }
.rmi-right { text-align: right; flex-shrink: 0; }
.rmi-price { font-size: .78rem; font-weight: 800; color: var(--pk-navy); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.rmi-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 0; color: var(--pk-text2); font-size: .8rem; }
.rmi-empty svg { width: 18px; height: 18px; color: var(--pk-blue); }

/* ─── DETAIL PRODUK ───────────────────────────────────────────────────────── */
.detail-page { max-width: 640px; margin: 0 auto; padding: 16px 16px var(--pk-nav-space); }
.detail-header {
  display: flex; gap: 16px; align-items: center; margin-bottom: 18px; padding: 16px;
  background: #fff; border: 1px solid var(--pk-line); border-radius: 22px; box-shadow: var(--pk-shadow);
}
.detail-img {
  width: 84px; height: 84px; border-radius: 20px; overflow: hidden; flex-shrink: 0; padding: 8px;
  background: linear-gradient(180deg, #F7F9FC, #EAF2F8); box-shadow: inset 0 0 0 1px var(--pk-line);
  display: flex; align-items: center; justify-content: center;
}
.detail-img img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 14px; }
.detail-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--pk-deep); margin-bottom: 6px; word-break: break-word; }
.detail-sub {
  display: inline-block; max-width: 100%; padding: 3px 10px; border-radius: 999px;
  background: var(--pk-soft); color: var(--pk-blue); font-size: .7rem; font-weight: 700; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail-section { margin-bottom: 18px; }
.detail-section-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--pk-text2); margin-bottom: 10px; }

.duration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.duration-btn {
  width: 100%; height: 48px; padding: 0 12px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--pk-line); background: #fff; color: var(--pk-text);
  font-size: .84rem; font-weight: 700; display: flex; align-items: center; justify-content: center; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--pk-shadow);
  transition: background .25s var(--pk-ease), color .25s var(--pk-ease), border-color .25s var(--pk-ease), transform .15s var(--pk-ease);
  -webkit-tap-highlight-color: transparent;
}
.duration-btn:hover { border-color: rgba(40,87,122,.45); color: var(--pk-navy); }
.duration-btn:active { transform: scale(.96); }
.duration-btn.selected { background: var(--pk-navy); border-color: var(--pk-navy); color: #fff; box-shadow: 0 10px 18px -10px rgba(22,59,92,.6); }

/* JS lama menampilkan #priceDisplay dengan display:flex → paksa susunan kolom penuh */
#priceDisplay { flex-direction: column; align-items: stretch; }
.price-display {
  background: #fff; border: 1px solid var(--pk-line); border-radius: 20px; padding: 16px 18px; box-shadow: var(--pk-shadow);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.price-label { font-size: .74rem; color: var(--pk-text2); margin-bottom: 2px; }
.price-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--pk-navy); font-variant-numeric: tabular-nums; }
.stock-badge { font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.stock-available { background: rgba(31,122,77,.10); color: #1F7A4D; }
.stock-empty { background: rgba(180,35,24,.10); color: #B42318; }

.note-card { background: #FFFBF0; border: 1px solid rgba(154,106,0,.22); border-radius: 18px; padding: 14px 16px; }
.note-card-title { font-size: .75rem; font-weight: 800; color: #9A6A00; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.note-card-title svg { width: 14px; height: 14px; flex-shrink: 0; }
.note-card-p, .note-card p { font-size: .8rem; color: #7A5200; line-height: 1.75; margin: 0; padding: 0; white-space: pre-wrap; word-break: break-word; }
.note-card-p br + br { display: block; content: ''; margin-top: 6px; }

.promo-input {
  width: 100%; height: 48px; padding: 0 16px; background: #fff; border: 1px solid var(--pk-line); border-radius: 16px;
  color: var(--pk-text); font-size: .9rem; outline: none; box-shadow: var(--pk-shadow);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.promo-input:focus { border-color: var(--pk-blue); box-shadow: 0 0 0 4px rgba(40,87,122,.12); }
.promo-input::placeholder { color: var(--pk-text2); }

.btn-pesan {
  width: 100%; height: 54px; margin-top: 20px; border: none; border-radius: 18px; cursor: pointer;
  background: var(--pk-navy); color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: -.005em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 14px 24px -12px rgba(22,59,92,.65);
  transition: background .2s, transform .15s var(--pk-ease), box-shadow .25s var(--pk-ease);
  -webkit-tap-highlight-color: transparent;
}
.btn-pesan:hover:not(:disabled) { background: var(--pk-deep); }
.btn-pesan:active:not(:disabled) { transform: scale(.97); }
.btn-pesan:disabled { background: #B9C6D3; box-shadow: none; cursor: not-allowed; }
.btn-pesan svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── STRUK ───────────────────────────────────────────────────────────────── */
.struk-card { background: #fff; border: 1px solid var(--pk-line); border-radius: 24px; padding: 26px 20px; text-align: center; box-shadow: var(--pk-shadow); }
.struk-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(31,122,77,.10); border: 2px solid rgba(31,122,77,.25); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: #1F7A4D; }
.struk-icon svg { width: 26px; height: 26px; display: block; }
.struk-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; color: var(--pk-deep); margin-bottom: 4px; }
.struk-sub { font-size: .78rem; color: var(--pk-text2); margin-bottom: 18px; }
.struk-divider { border: none; border-top: 1px dashed var(--pk-line); margin: 14px 0; }
.struk-row { display: flex; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.struk-row .key { font-size: .78rem; color: var(--pk-text2); flex-shrink: 0; }
.struk-row .val { font-size: .78rem; font-weight: 700; text-align: right; word-break: break-all; }
.struk-note { background: var(--pk-soft); border: 1px solid var(--pk-line); border-radius: 14px; padding: 12px; margin: 14px 0; font-size: .76rem; color: var(--pk-blue); line-height: 1.6; }
.struk-thanks { font-size: .78rem; color: var(--pk-text2); font-style: italic; margin-top: 8px; }
.btn-kembali-dashboard {
  width: 100%; height: 48px; margin-top: 14px; border: none; border-radius: 16px; cursor: pointer; text-decoration: none;
  background: var(--pk-navy); color: #fff; font-size: .875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 7px; transition: background .2s, transform .15s var(--pk-ease);
}
.btn-kembali-dashboard:hover { background: var(--pk-deep); }
.btn-kembali-dashboard:active { transform: scale(.97); }
.btn-kembali-dashboard svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── TOAST (di atas navigasi mengambang) ─────────────────────────────────── */
.toast { bottom: calc(66px + 14px + 22px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 12px 28px -10px rgba(16,42,67,.35), inset 0 0 0 1px var(--pk-line); border-radius: 14px; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 359px) {
  .pk-header, .search-bar, .produk-content, .detail-page { padding-left: 12px; padding-right: 12px; }
  .cat-row { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  body .vguide-bar { margin-left: 12px; margin-right: 12px; }
  .products-grid { gap: 10px; }
  .product-img-wrap { padding: 14px; }
  .product-info { padding: 10px 10px 12px; }
  .product-name { font-size: .84rem; }
  .pp-val { font-size: .95rem; }
  .pk-sub { display: none; }
  .btn-pantau-cari { padding: 0 12px; font-size: .78rem; }
  .duration-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 600px) {
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .produk-content, .search-bar, .pk-header { padding-left: 24px; padding-right: 24px; }
  .cat-row { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
  body .vguide-bar { margin-left: 24px; margin-right: 24px; }
}
@media (min-width: 900px) {
  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (hover: none) {
  .product-card:hover { transform: none; box-shadow: var(--pk-shadow); border-color: var(--pk-line); }
  .product-card:hover .product-img-wrap img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
