/* Packages page: sidebar of filters, ranked search, list and card views, quantity steppers and the "Your list" slide-over. Built by site/js/packages.js. */

/* ---------- banner: the price list at a glance ---------- */
.pk-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.pk-stats li { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: .9rem; color: rgba(255, 255, 255, .78); }
.pk-stats b { font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--gold); }

/* ---------- layout ---------- */
.pk-sec { padding-bottom: 120px; }
.pk-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 34px; align-items: start; }
.pk-layout.pk-empty { grid-template-columns: minmax(0, 1fr); }
.pk-layout.pk-empty .pk-side, .pk-layout.pk-empty .pk-tools, .pk-layout.pk-empty .pk-status, .pk-layout.pk-empty .pk-ideas { display: none; }
.pk-main { min-width: 0; }

/* ---------- sidebar ---------- */
.pk-side { position: sticky; top: 88px; max-height: calc(100vh - 108px); max-height: calc(100dvh - 108px); overflow-y: auto; border: 1px solid var(--line); border-radius: 22px; background: #fff; scrollbar-width: thin; }
.pk-side-in { padding: 20px 18px 18px; }
.pk-side-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pk-side-head h2 { margin-right: auto; font-size: 1.15rem; }
.pk-reset { padding: 4px 10px; border: 0; border-radius: 999px; background: none; font: 700 .84rem "Jakarta", system-ui, sans-serif; color: var(--royal); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }
.pk-side-close { display: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; color: var(--navy-900); cursor: pointer; }
.pk-fs { margin: 0 0 20px; }
.pk-fs h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pk-fs h3 label { cursor: pointer; }
.pk-fs output { font-size: .9rem; letter-spacing: 0; text-transform: none; font-weight: 800; color: var(--navy-900); }
.pk-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pk-cat-btn { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.pk-cat-btn:hover { background: var(--sand); }
.pk-cat-btn .pk-ico { width: 32px; height: 32px; border-radius: 9px; }
.pk-cat-btn .pk-ico .ic { width: 17px; height: 17px; }
.pk-cat-t { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.pk-cat-t b { font-size: .94rem; }
.pk-cat-t small { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-cat-n { flex: none; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--sand); font-size: .78rem; font-weight: 800; text-align: center; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.pk-cat-btn[aria-pressed="true"] { background: var(--navy-900); color: #fff; }
.pk-cat-btn[aria-pressed="true"] .pk-cat-t small { color: rgba(255, 255, 255, .7); }
.pk-cat-btn[aria-pressed="true"] .pk-ico { background: rgba(255, 255, 255, .12); }
.pk-cat-btn[aria-pressed="true"] .pk-cat-n { background: var(--gold); }
.pk-seg { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: var(--sand); }
.pk-seg button { flex: 1; min-height: 38px; padding: 0 8px; border: 0; border-radius: 9px; background: none; font: 700 .86rem "Jakarta", system-ui, sans-serif; color: var(--navy-900); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.pk-seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px -2px rgba(10, 31, 68, .35); }
.pk-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 4px 0 0; background: none; cursor: pointer; }
.pk-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--gold) var(--p, 100%), var(--line) var(--p, 100%)); }
.pk-range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
.pk-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--gold); }
.pk-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 3px solid #fff; border-radius: 50%; background: var(--navy-900); box-shadow: 0 2px 8px rgba(10, 31, 68, .45); }
.pk-range::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: var(--navy-900); box-shadow: 0 2px 8px rgba(10, 31, 68, .45); }
.pk-range-hint { margin: 8px 0 0; font-size: .82rem; line-height: 1.4; color: var(--muted); }
.pk-apply { display: none; }

/* ---------- toolbar ---------- */
.pk-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pk-search { position: relative; flex: 1 1 280px; }
.pk-kbd { flex: none; min-width: 26px; padding: 2px 8px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 7px; background: var(--ivory); font: 700 .8rem "Jakarta", system-ui, sans-serif; text-align: center; color: var(--muted); }
.pk-search input:not(:placeholder-shown) ~ .pk-kbd, .pk-search input:focus ~ .pk-kbd { display: none; }
@media (hover: none) { .pk-kbd { display: none; } }
.pk-filter-btn { display: none; height: 54px; border-radius: 14px; }
.pk-filter-btn b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); font-size: .78rem; color: var(--navy-900); }
.pk-view { display: flex; gap: 3px; padding: 3px; height: 54px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; }
.pk-view button { display: grid; place-items: center; width: 44px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.pk-view button[aria-pressed="true"] { background: var(--navy-900); color: var(--gold); }
.pk-ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .86rem; font-weight: 700; color: var(--muted); }
.pk-ideas button { padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font: 700 .86rem "Jakarta", system-ui, sans-serif; color: var(--navy-900); cursor: pointer; }
.pk-ideas button:hover { border-color: var(--navy-900); }
.pk-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 34px; margin: 16px 0 6px; }
.pk-count { margin: 0; font-size: .92rem; font-weight: 700; color: var(--muted); }
.pk-active { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border: 1px solid var(--gold); border-radius: 999px; background: #fff6dd; font: 700 .84rem "Jakarta", system-ui, sans-serif; color: var(--navy-900); cursor: pointer; }
.pk-chip .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.pk-chip:hover { background: #ffedb8; }

/* ---------- the packages ---------- */
.pk-results .skel { height: 96px; margin-bottom: 12px; }
.pk-results { display: grid; gap: 26px; }
.pk-group { padding: 0; }
.pk-head { margin-bottom: 4px; }
.pk-rows { list-style: none; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pk-group .pk-rows { margin-top: 10px; }
.pk-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 22px; padding: 15px 18px; transition: background .2s, box-shadow .2s; }
.pk-item + .pk-item { border-top: 1px solid var(--line); }
.pk-item:hover { background: #fffdf7; }
.pk-item.on { background: #fff8e4; box-shadow: inset 0 0 0 1.5px var(--gold); }
.pk-it-main { display: grid; gap: 3px; min-width: 0; }
.pk-it-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pk-name { font-weight: 800; line-height: 1.3; color: var(--navy-900); }
.pk-desc { font-size: .9rem; line-height: 1.45; color: var(--muted); }
.pk-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--gold-ink); }
.pk-cat .ic { width: 14px; height: 14px; }
.pk-badge { padding: 2px 9px; border-radius: 999px; background: #e3f5ea; font-size: .76rem; font-weight: 800; color: var(--ok); white-space: nowrap; }
.pk-it-price b, .pk-card-price { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--navy-900); }
.pk-it-price b.ask, .pk-card-price.ask { font-size: .98rem; font-weight: 700; color: var(--muted); }
.pk-it-act { min-width: 168px; display: flex; justify-content: flex-end; }
.pk-add { min-width: 96px; }
.pk-qtybox { display: grid; justify-items: end; gap: 4px; }
.pk-line-total { font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold-ink); }
.pk-line-total.ask { color: var(--muted); }
mark { padding: 0 2px; border-radius: 3px; background: rgba(230, 168, 23, .4); color: inherit; }

/* cards view */
.pk-cards { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px; }
.pk-results > .pk-cards { margin-top: 0; }
.pk-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: border-color .2s, box-shadow .25s, transform .25s; }
.pk-card:hover { border-color: var(--gold); box-shadow: 0 22px 40px -28px rgba(10, 31, 68, .5); transform: translateY(-2px); }
.pk-card.on { border-color: var(--gold); background: #fffaf0; }
.pk-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pk-card .pk-ico { width: 38px; height: 38px; border-radius: 11px; }
.pk-card h3 { font-size: 1.08rem; }
.pk-card .pk-desc { margin: 0; flex: 1; }
.pk-card-foot { display: grid; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.pk-card-foot .pk-it-act { }
.pk-card-foot .pk-add, .pk-card-foot .pk-qtybox { width: 100%; }
.pk-card-foot .pk-qtybox { grid-template-columns: auto 1fr; align-items: center; justify-items: stretch; }
.pk-card-foot .pk-line-total { text-align: right; }
.pk-card-foot .pk-add { justify-self: stretch; }
.pk-none { margin-top: 6px; }

/* ---------- the list bar ---------- */
.pk-basket { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 40; display: flex; justify-content: center; margin: 0; padding: 0 16px; pointer-events: none; }
.pk-basket-in { pointer-events: auto; width: min(720px, 100%); gap: 14px; padding: 10px 12px 10px 10px; flex-wrap: nowrap; justify-content: space-between; }
.pk-basket-open { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 4px 10px 4px 4px; border: 0; border-radius: 14px; background: none; font: inherit; text-align: left; color: #fff; cursor: pointer; transition: background .2s; }
.pk-basket-open:hover { background: rgba(255, 255, 255, .08); }
.pk-basket-ico { position: relative; display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: var(--gold); }
.pk-basket-ico b { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border: 2px solid var(--navy-950); border-radius: 999px; background: var(--gold); font-size: .76rem; color: var(--navy-900); }
.pk-basket-t { display: grid; min-width: 0; line-height: 1.25; }
.pk-basket-t b { font-size: 1rem; }
.pk-basket-t small { font-size: .84rem; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- the slide-over ---------- */
.pk-drawer { position: fixed; inset: 0; z-index: 90; }
.pk-drawer[hidden] { display: none; }
html.pk-lock { overflow: hidden; }
.pk-drawer-scrim { position: absolute; inset: 0; background: rgba(6, 17, 43, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.pk-drawer.open .pk-drawer-scrim { opacity: 1; }
.pk-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(470px, 100vw); background: var(--ivory); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .6); transform: translateX(100%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.pk-drawer.open .pk-drawer-panel { transform: none; }
.pk-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.pk-drawer-head h2 { font-size: 1.35rem; }
.pk-drawer-head .pk-side-close { display: grid; }
.pk-drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 28px; overscroll-behavior: contain; }
.pk-dl-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.pk-dl { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pk-dl-t { display: grid; gap: 2px; }
.pk-dl-t small { font-size: .82rem; color: var(--muted); }
.pk-dl-c { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pk-dl-sum { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.pk-total { margin-top: 0; }
.pk-note { padding: 12px 14px; border-radius: 12px; background: #eaf0fb; font-size: .92rem; color: var(--navy-900); }
.pk-dacts { display: grid; gap: 10px; margin-top: 16px; }
.pk-dacts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pk-dacts2 .btn { padding: 0 12px; font-size: .92rem; }
.pk-clear { justify-self: center; padding: 8px 14px; border: 0; background: none; font: 700 .88rem "Jakarta", system-ui, sans-serif; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pk-clear:hover { color: #b42323; }
.pk-empty-list { display: grid; justify-items: center; gap: 8px; padding: 40px 10px; text-align: center; color: var(--muted); }
.pk-empty-list b { font-size: 1.15rem; color: var(--navy-900); }

/* ---------- the printed quote ---------- */
#pk-quote { display: none; }
@media print {
  body.printing-quote > *:not(#pk-quote) { display: none !important; }
  body.printing-quote #pk-quote { display: block; padding: 8mm 4mm; color: #000; font: 13px/1.55 system-ui, "Segoe UI", sans-serif; }
  #pk-quote header { margin-bottom: 14px; border-bottom: 2px solid #000; padding-bottom: 8px; }
  #pk-quote h1 { margin: 0; font-size: 22px; color: #000; }
  #pk-quote p { margin: 4px 0; }
  #pk-quote table { width: 100%; border-collapse: collapse; margin: 14px 0; }
  #pk-quote th, #pk-quote td { padding: 7px 8px; border-bottom: 1px solid #999; text-align: left; }
  #pk-quote th:nth-child(n+2), #pk-quote td:nth-child(n+2) { text-align: right; }
  #pk-quote .pk-q-total { margin: 10px 0 14px; font-size: 16px; font-weight: 700; }
}

/* ---------- tablets and phones: the sidebar becomes a sheet ---------- */
@media (max-width: 1020px) {
  .pk-kbd { display: none; }
  .pk-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pk-filter-btn { display: inline-flex; }
  .pk-side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 85; max-height: 88vh; max-height: 88dvh; border: 0; border-radius: 24px 24px 0 0; transform: translateY(105%); visibility: hidden; transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s .38s; box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .6); }
  body.pk-sheet .pk-side { transform: none; visibility: visible; transition-delay: 0s; }
  .pk-side-close { display: grid; }
  .pk-apply { display: inline-flex; position: sticky; bottom: 0; margin-top: 6px; }
  .pk-scrim { position: fixed; inset: 0; z-index: 84; background: rgba(6, 17, 43, .55); }
  .pk-scrim[hidden] { display: none; }
  body.pk-sheet { overflow: hidden; }
}
@media (max-width: 760px) {
  .pk-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .pk-stats li { justify-content: center; text-align: center; }
  .pk-sec { padding-bottom: 170px; }
  .pk-search { flex-basis: 100%; }
  .pk-sort { flex: 1; }
  .pk-sort select { width: 100%; }
  .pk-basket { bottom: 84px; padding: 0 12px; }
  html.pk-has-list .gs { bottom: calc(160px + env(safe-area-inset-bottom)); }
  .pk-item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 14px; }
  .pk-it-act { grid-column: 1 / -1; min-width: 0; justify-content: flex-start; }
  .pk-qtybox { grid-auto-flow: column; justify-items: start; align-items: center; gap: 14px; }
  .pk-cards { grid-template-columns: minmax(0, 1fr); }
  .pk-drawer-panel { top: auto; left: 0; width: 100%; max-height: 90vh; max-height: 90dvh; border-radius: 24px 24px 0 0; transform: translateY(100%); box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, .6); }
  .pk-drawer-head { border-radius: 24px 24px 0 0; padding: 16px 18px; }
  .pk-drawer-body { padding: 16px 16px 24px; }
  .pk-go-more { display: none; }
  .pk-basket-in .btn-sm { padding: 0 14px; }
  .pk-basket-open { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-drawer-panel, .pk-drawer-scrim, .pk-side, .pk-card { transition: none; }
}

/* a very long search word must wrap, not push the page sideways */
.pk-chip { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.pk-none b, .pk-count, .pk-name, .pk-desc { overflow-wrap: anywhere; }
.pk-none { overflow-wrap: anywhere; }
