/* ============================================================
   BJP — order system
   Direction: laboratory requisition document.
   Montserrat carries language, IBM Plex Mono carries every figure.
   ============================================================ */

:root{
  /* Ink & paper */
  --ink:            #12171C;
  --ink-70:         #3A434C;
  --muted:          #66717B;
  --faint:          #9A9A9F;
  --paper:          #FFFFFF;
  --wash:           #F5FBFF;
  --rule:           #E2EEF6;
  --rule-strong:    #1A1A1C;

  /* Brand gold */
  --gold:           #BFE7FF;   /* BJP baby blue: buttons, chips, highlights */
  --gold-soft:      #DDF2FF;
  --gold-wash:      #F2FAFF;
  --gold-deep:      #1F2A37;   /* was gold; Koby 18 Oct: no gold except logo + product images */
  --gold-line:      #BFE7FF;

  /* States */
  --ok:             #1B6B41;
  --ok-wash:        #E8F3EC;
  --alert:          #A32017;
  --alert-wash:     #FBEDEC;

  /* Metrics */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  14px;
  --r-pill: 100px;
  --shell: 1080px;
  --read:  620px;

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body{
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-deep); }

/* Every figure in the interface is mono and tabular. */
.fig, .price, .amount, .ordernum-card .v, .pay-row .v,
.summary-table td.r, .line-total, .stat .v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.container { max-width: var(--shell); margin: 0 auto; padding: 0 20px; width: 100%; }

.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.hidden { display: none !important; }

/* ============================================================
   Masthead
   ============================================================ */

.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header .inner{
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand svg { flex-shrink: 0; }

.trust-badges{
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
  text-align: right;
  text-transform: uppercase;
}

/* ============================================================
   Opening statement
   ============================================================ */

.hero{
  padding: 52px 0 34px;
  max-width: var(--read);
  margin: 0 auto;
  text-align: center;
}

.eyebrow{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}

h1{
  font-size: clamp(27px, 6vw, 40px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 14px;
}

.hero p{
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 auto;
  max-width: 46ch;
}

/* ============================================================
   Procedure
   ============================================================ */

.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}

.step{
  padding: 20px 22px 22px 0;
  border-right: 1px solid var(--rule);
  display: block;
}
.step:last-child { border-right: 0; padding-right: 0; }
.step:not(:first-child) { padding-left: 22px; }

.step-num{
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: 7px;
}
.step-num::before { content: "STEP "; }

.step p{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-70);
}

/* ============================================================
   Filters
   ============================================================ */

.searchbar { margin-bottom: 14px; }

.searchbar input{
  width: 100%;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.searchbar input::placeholder { color: var(--faint); }

.filters{
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.chip{
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  padding: 8px 15px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-70);
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.chip:hover { border-color: var(--gold-line); }
.chip[aria-pressed="true"]{
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ============================================================
   Catalogue — a ruled requisition list, not a card grid
   ============================================================ */

/* The list is data, not a landing page: hold it to a scannable measure */
#catalogue, .perks, .notice, .searchbar, .filters, #no-results, .steps{
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.cat-section { margin-bottom: 40px; }

.cat-heading{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 2px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--rule-strong);
  display: block;
}

.grid { display: block; }

.card{
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 0 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  transition: background .12s ease;
}
.card:hover { background: var(--wash); }

.card.selected{
  background: var(--gold-wash);
  box-shadow: inset 3px 0 0 var(--gold);
  padding-left: 13px;
  padding-right: 10px;
}

.card .thumb{
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--wash);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph{
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-deep);
}

.card h3{
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.card .variant{
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin: 2px 0 0;
}

.card .desc { display: none; }

.card .price{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  text-align: right;
  min-width: 74px;
}

.card .oos{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--alert);
  text-transform: uppercase;
  margin: 0;
}

.line-total{
  grid-column: 2 / -1;
  font-size: 11.5px;
  color: var(--gold-deep);
  margin: 5px 0 0;
  text-align: right;
}
.line-total:empty { display: none; }

/* Quantity stepper */
.qty{
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--paper);
  width: 112px;
}
.qty button{
  flex: 0 0 34px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .12s ease;
}
.qty button:hover { background: var(--gold-soft); }
.qty input{
  flex: 1;
  min-width: 0;
  width: 100%;
  text-align: center;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--ink);
  padding: 0;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

#no-results{
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 0;
}

/* ============================================================
   Standing terms
   ============================================================ */

.perks{
  background: var(--gold-wash);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin: 34px 0;
}
.perks h4{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 10px;
}
.perks p{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-70);
}

.notice{
  border-top: 1px solid var(--rule);
  padding: 24px 0 0;
  margin: 34px 0;
}
.notice h4{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.notice ul{
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.notice li::marker { color: var(--gold-line); }

/* ============================================================
   SIGNATURE — running total as an instrument readout
   ============================================================ */

.cartbar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .24s cubic-bezier(.22,.61,.36,1);
  border-top: 2px solid var(--gold);
}
.cartbar.show { transform: translateY(0); }

.cartbar .inner{
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cartbar .label{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 2px;
}

.cartbar .amount{
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.1;
}

.cartbar .sub{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  margin-top: 3px;
  letter-spacing: 0.01em;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn{
  display: inline-block;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .14s ease, border-color .14s ease, opacity .14s ease;
}
.btn:hover { background: #A8DDFB; border-color: #A8DDFB; }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn.block { display: block; width: 100%; }
.btn.lg { padding: 17px 28px; font-size: 14.5px; }
.btn.ghost{
  background: transparent;
  border-color: rgba(255,255,255,.28);
  color: var(--paper);
}
.btn.quiet{
  background: var(--paper);
  border-color: var(--rule);
  color: var(--ink);
}
.btn.quiet:hover { background: var(--wash); border-color: var(--gold-line); }

/* ============================================================
   Checkout
   ============================================================ */

.checkout{
  max-width: var(--read);
  margin: 0 auto;
  padding: 38px 20px 120px;
}

.progress{
  display: flex;
  gap: 5px;
  margin-bottom: 26px;
}
.progress span{
  flex: 1;
  height: 2px;
  background: var(--rule);
}
.progress span.on { background: var(--gold); }

.step-label{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
}

h2{
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 22px;
}

.field { margin-bottom: 16px; }

.field label{
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.005em;
}
.field .opt { color: var(--faint); font-weight: 400; }

.field input, .field select, .field textarea{
  width: 100%;
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  transition: border-color .12s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gold-line); }
.field textarea { min-height: 84px; resize: vertical; }

.field.err input, .field.err select, .field.err textarea { border-color: var(--alert); }
.field .msg{
  display: none;
  font-size: 12px;
  color: var(--alert);
  margin-top: 5px;
}
.field.err .msg { display: block; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.checkbox{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
}
.checkbox input{
  width: 20px; height: 20px; flex: 0 0 20px;
  margin-top: 2px;
  accent-color: var(--ink);
}
.checkbox label{
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-70);
}

.error-summary{
  display: none;
  background: var(--alert-wash);
  border-left: 3px solid var(--alert);
  border-radius: var(--r-sm);
  padding: 15px 18px;
  margin-bottom: 20px;
}
.error-summary.show { display: block; }
.error-summary h4{
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--alert);
}
.error-summary ul { margin: 0; padding-left: 18px; font-size: 13px; }
.error-summary a { color: var(--alert); }

/* Review */

.summary-table { width: 100%; border-collapse: collapse; }
.summary-table td{
  padding: 11px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-70);
}
.summary-table td.r { text-align: right; white-space: nowrap; }
.summary-table tr.disc td { color: var(--gold-deep); }
.summary-table tr.tot td{
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 0;
  border-top: 1.5px solid var(--rule-strong);
  padding-top: 14px;
}

.review-block{
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.review-block h4{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 10px;
}
.review-block p { margin: 0; font-size: 13.5px; line-height: 1.65; }
.review-block .edit{
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  background: none;
  border: 0;
  color: var(--gold-deep);
  cursor: pointer;
  padding: 0 0 0 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   Confirmation & transfer instructions
   ============================================================ */

.success{
  max-width: var(--read);
  margin: 0 auto;
  padding: 40px 20px 90px;
}

.success-badge{
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ok-wash);
  border: 1px solid var(--ok);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 20px;
}

.ordernum-card{
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  text-align: center;
  margin-bottom: 26px;
}
.ordernum-card .k{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.ordernum-card .v{
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold);
  margin: 8px 0 6px;
  word-break: break-all;
}
.ordernum-card .n{
  font-size: 12.5px;
  color: rgba(255,255,255,.65);
}

.pay-list{
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 14px;
}
.pay-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--rule);
}
.pay-row:last-child { border-bottom: 0; }
.pay-row.total { background: var(--gold-wash); }

.pay-row .k{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.pay-row .v{
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-all;
}
.pay-row.total .v { font-size: 19px; color: var(--gold-deep); }

.copy-btn{
  flex: 0 0 auto;
  min-width: 68px;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.copy-btn:hover { border-color: var(--gold); background: var(--gold-wash); }
.copy-btn.done{
  background: var(--ok-wash);
  border-color: var(--ok);
  color: var(--ok);
}

.copyall { margin-bottom: 26px; }

.pay-note{
  background: var(--wash);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 26px;
  color: var(--ink-70);
}
.pay-note strong { color: var(--ink); }

.fallback{
  border: 1px dashed var(--rule);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 26px;
}
.fallback textarea{
  width: 100%;
  min-height: 160px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 14px;
  resize: vertical;
}

/* ============================================================
   Footer matter
   ============================================================ */

.disclaimer{
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: var(--faint);
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.disclaimer strong { color: var(--muted); font-weight: 600; }

.site-footer{
  text-align: center;
  font-size: 12px;
  color: var(--faint);
  margin-top: 14px;
  padding: 0 0 40px;
}
.site-footer a { color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px){
  .steps { grid-template-columns: 1fr; }
  .step{
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 16px 0;
  }
  .step:last-child { border-bottom: 0; }
  .step:not(:first-child) { padding-left: 0; }
}

@media (max-width: 620px){
  .container, .shell { padding: 0 16px; }
  .site-header .inner { padding: 12px 16px; gap: 10px; }
  .brand { font-size: 13.5px; gap: 8px; }
  .brand svg { width: 21px; height: 21px; }
  .trust-badges { font-size: 8.5px; letter-spacing: 0; }

  .hero { padding: 34px 0 24px; }
  .hero p { font-size: 14px; }

  .card{
    grid-template-columns: 40px 1fr auto;
    gap: 0 13px;
    padding: 14px 0;
  }
  .card .thumb { width: 40px; height: 40px; }
  .card h3 { font-size: 14px; }
  .card .price{
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    margin-top: 4px;
    font-size: 13.5px;
    min-width: 0;
  }
  .card .qty { grid-column: 3; grid-row: 1 / span 2; }
  .card .oos { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .line-total { grid-column: 2 / 3; text-align: left; margin-top: 5px; }

  .checkout { padding: 30px 16px 130px; }
  .success { padding: 30px 16px 70px; }
  h2 { font-size: 21px; }
  .row2 { grid-template-columns: 1fr; }

  .cartbar { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .cartbar .inner { gap: 12px; }
  .cartbar .amount { font-size: 21px; }
  .cartbar .btn { padding: 13px 20px; font-size: 12.5px; white-space: nowrap; }

  .pay-row { padding: 14px 15px; gap: 10px; }
  .pay-row .v { font-size: 15px; }
  .copy-btn { min-width: 62px; padding: 10px 11px; font-size: 12px; }
}

#view-catalogue { padding-bottom: 130px; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .cartbar { transition: none; }
}

/* ============================================================
   Admin — same system, denser
   ============================================================ */

.admin-body { background: var(--wash); }

.admin-nav{
  background: var(--ink);
  color: var(--paper);
  padding: 13px 20px;
}
.admin-nav .inner{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.admin-nav a{
  color: rgba(255,255,255,.68);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .12s ease;
}
.admin-nav a:hover { color: var(--paper); }
.admin-nav a.on { color: var(--gold); }

.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px 70px; }

.panel{
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 20px;
  margin-bottom: 18px;
}
.panel h3{
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.stats{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (min-width: 780px){ .stats { grid-template-columns: repeat(4, 1fr); } }

.stat{
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 16px;
}
.stat .k{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.stat .v{
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td{
  padding: 10px 8px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
table.data th{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
table.data tr:hover td { background: var(--wash); }

.badge{
  display: inline-block;
  font-family: var(--mono);
  padding: 4px 9px;
  border-radius: var(--r-sm);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge.await   { background: var(--gold-wash); color: var(--gold-deep); }
.badge.paid    { background: var(--ok-wash);   color: var(--ok); }
.badge.cancel  { background: var(--alert-wash);color: var(--alert); }
.badge.neutral { background: #EFEFEC;          color: var(--muted); }

.flash{
  padding: 13px 16px;
  border-radius: var(--r-md);
  margin-bottom: 18px;
  font-size: 13.5px;
}
.flash.ok  { background: var(--ok-wash);    color: var(--ok);    border-left: 3px solid var(--ok); }
.flash.err { background: var(--alert-wash); color: var(--alert); border-left: 3px solid var(--alert); }

.login-wrap { max-width: 380px; margin: 80px auto; padding: 0 20px; }

@media (max-width: 720px){
  .admin-nav .inner { gap: 12px; font-size: 12px; }
  .admin-wrap { padding: 18px 14px 60px; }
  .panel { padding: 15px; }
  table.data { font-size: 12px; }
  table.data th, table.data td { padding: 8px 6px; }
}

@media print{
  .admin-nav, .no-print { display: none !important; }
  body { background: var(--paper); }
}

/* ---------------- kits (10-vial boxes) ----------------
   The card is a 4-column grid and the single-vial stepper already wraps to
   row 2 column 1, where its 112px pill overflows into the empty cells to
   its right. The kit strip therefore has to span the FULL width on its own
   row (1 / -1), not 2 / -1: anything sitting in row 2 columns 2-4 collides
   with that overflowing pill. */
.card .kit-box{
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 9px 0 0;
  padding: 9px 12px;
  border: 1px solid var(--gold-line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  background: var(--gold-wash);
}

.kit-info { min-width: 0; }

.kit-head{
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.kit-tag{
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.kit-prices{
  margin: 4px 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.25;
}
.kit-now{
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.kit-per{
  font-size: 11.5px;
  color: var(--muted);
  margin-left: -4px;
}
.kit-was{
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}
.kit-dot { color: var(--rule); }
.kit-total{
  font-size: 12.5px;
  color: var(--ink-70);
}

.kit-note{
  margin: 3px 0 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
}

.card .kit-box .qty{
  flex: 0 0 auto;
  width: 100px;
  background: var(--paper);
}
.card .kit-box .qty button{ flex: 0 0 30px; height: 34px; font-size: 15px; }
.card .kit-box .qty input{ font-size: 13px; }

.line-total.kit-line{ grid-column: 2 / -1; }

@media (max-width: 620px){
  .card .kit-box{
    padding: 9px 10px;
    gap: 10px;
  }
  .card .kit-box .qty{ width: 96px; }
  .line-total.kit-line{ grid-column: 1 / -1; text-align: left; }
}


/* ============================================================
   BJP brand layer: baby blue #BFE7FF, white, metallic gold #D4AF37.
   White dominant, blue for navigation/accents, gold only as fine detail.
   ============================================================ */
:root{ --bjp-blue:#BFE7FF; --bjp-gold:#9FD3F5; --bjp-gold-hi:#DDF2FF; } /* "gold" vars now blue: Koby 18 Oct, gold only on logo + product images */
.site-header{ border-bottom: 1px solid var(--bjp-blue); }
.brand .bjp-logo{ height: 52px; width: auto; display:block; }
@media (max-width: 640px){ .brand .bjp-logo{ height: 42px; } }
.brand .bjp-name{ font-weight:600; letter-spacing:.14em; font-size:11px; color:var(--muted); text-transform:uppercase; }
.trust-badges{ color: var(--gold-deep); text-align:right; }
.hero h1{ letter-spacing:-0.02em; }
.hero .eyebrow, .step-label{ color: var(--gold-deep); }
.chip[aria-pressed="true"]{ background: var(--bjp-blue); border-color: var(--bjp-blue); color: var(--ink); }
.card{ border-color: var(--rule); }
.card .thumb{ background: linear-gradient(180deg,#FFFFFF 0%, #F2FAFF 100%); }
/* No dark fills anywhere: the bars and cards that were ink-black in the Pure build are white / baby blue here. */
.cartbar{ background:#fff; color:var(--ink); border-top: 1px solid var(--bjp-gold); box-shadow: 0 -6px 20px rgba(18,23,28,.06); }
.cartbar .label{ color: var(--muted); }
.cartbar .amount{ color: var(--ink); }
.cartbar .sub{ color: var(--gold-deep); }
.success-badge{ background: var(--bjp-blue); color: var(--ink); box-shadow: 0 0 0 2px var(--bjp-gold) inset; }
.ordernum-card{ background: var(--wash); border: 1px solid var(--bjp-gold); }
.ordernum-card .k, .ordernum-card .n{ color: var(--muted); }
.ordernum-card .v{ color: var(--ink); }
.admin-nav{ background: var(--bjp-blue); color: var(--ink); border-bottom: 1px solid var(--bjp-gold); }
.admin-nav a{ color: var(--ink-70); }
.admin-nav a:hover{ color: var(--ink); }
.admin-nav a.on{ color: var(--ink); font-weight: 700; box-shadow: 0 2px 0 var(--bjp-gold); }

/* ---- crypto payment page ---- */
.pay-tabs{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.pay-tabs a{ padding:8px 14px; border:1px solid var(--rule); border-radius:var(--r-pill); font-size:12.5px; font-weight:600; color:var(--ink-70); text-decoration:none; background:#fff; }
.pay-tabs a[aria-current="true"]{ background:var(--bjp-blue); border-color:var(--bjp-blue); color:var(--ink); }
.qr-wrap{ display:flex; justify-content:center; margin:6px 0 16px; }
.qr-wrap .qr{ padding:12px; background:#fff; border:1px solid var(--rule); border-radius:var(--r-md); box-shadow:0 0 0 1px var(--bjp-gold) inset; }
.qr-wrap .qr svg, .qr-wrap .qr img{ width:200px; height:200px; display:block; }
.pay-row .v.addr{ word-break:break-all; font-size:13px; }
.status-pill{ display:inline-block; padding:4px 12px; border-radius:var(--r-pill); font-size:12px; font-weight:700; letter-spacing:.02em; }
.status-pill.wait{ background:var(--gold-wash); color:var(--gold-deep); border:1px solid var(--bjp-gold); }
.status-pill.ok{ background:var(--ok-wash); color:var(--ok); }
.status-pill.bad{ background:var(--alert-wash); color:var(--alert); }
.crypto-cta{ text-align:center; margin:18px 0 8px; }
.quote-note{ font-size:12.5px; color:var(--muted); text-align:center; margin:4px 0 18px; }
/* ghost buttons sit on white pages here (they sat on a black bar in the Pure build) */
.btn.ghost{ background: transparent; border-color: var(--bjp-blue); color: var(--ink); }
/* wide admin tables (status history, order lists) scroll inside their panel on phones instead of clipping */
.panel{ overflow-x: auto; }
/* app.js injects Pure's black add-to-cart button styles at runtime; BJP buttons are baby blue */
.card .pp-add{ background: var(--bjp-blue) !important; color: var(--ink) !important; }
.card .pp-add:hover{ background: #A8DDFB !important; }
.card .pp-add:active{ background: #A8DDFB !important; }
.card .pp-add.pp-add-kit{ background: transparent !important; border-color: var(--bjp-blue); }

/* ============================================================
   Koby 18 Oct: bolder look for forum/Telegram traffic.
   Big centred logo, shipping strip with icons, big product images,
   bigger type everywhere, refer-a-friend popup bottom left.
   app.js injects card styles at runtime, so card rules here carry
   one extra selector (body ...) to win on specificity.
   ============================================================ */
body{ font-size: 16px; }

.hero.hero-logo{ padding: 22px 0 10px; max-width: none; }
.hero-mark{ display:block; width: min(88vw, 460px); height:auto; margin: 0 auto; }
.hero-sub{ margin: 10px auto 0 !important; font-size: 13px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-70) !important; }

.ship-strip{
  margin: 18px auto 26px; padding: 18px 16px 16px; max-width: 760px;
  background: var(--bjp-blue); border-radius: 18px; text-align: center;
}
.ship-quick{ margin: 0 0 12px; font-size: clamp(22px, 6vw, 30px); font-weight: 900; letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); line-height: 1.05; }
.ship-strip ul{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ship-strip li{ display:flex; flex-direction:column; align-items:center; gap:7px; font-size: 13px; font-weight: 800; line-height:1.2; color: var(--ink); }
.ship-strip svg{ width: 44px; height: 44px; padding: 10px; border-radius: 50%; background:#fff; fill:none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

.searchbar input{ font-size: 17px; padding: 15px 16px; border-width: 2px; border-radius: 12px; }
.chip{ font-size: 14px !important; font-weight: 700 !important; padding: 10px 16px !important; }
.cat-heading{ font-size: 22px !important; font-weight: 900 !important; letter-spacing: -.01em !important; text-transform: uppercase; font-family: var(--sans) !important; color: var(--ink) !important; }
.top-sellers .cat-heading::before{ content: "\2605  "; color: var(--ink); }

body article.card{ grid-template-columns: 108px 1fr; column-gap: 16px; row-gap: 3px; align-items: start; }
body article.card .thumb{ grid-column: 1; grid-row: 1 / span 4; width: 108px !important; height: 108px !important; border-radius: 14px; }
body article.card .thumb img{ object-fit: contain; }
body article.card h3{ grid-column: 2; grid-row: 1; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
body article.card .variant{ grid-column: 2; grid-row: 2; font-size: 13px; font-weight: 600; }
body article.card .price{ grid-column: 2; grid-row: 3; text-align: left; font-size: 21px; font-weight: 800; min-width: 0; margin-top: 2px; }
body article.card .price .price-now{ font-size: 21px; font-weight: 800; }
body article.card > .pp-add,
body article.card > .qty.pp-stepper.pp-on{ grid-column: 2; grid-row: 4; justify-self: start; margin-top: 8px; }
body article.card > .pp-add{ font-size: 15px; font-weight: 800; padding: 11px 18px; min-height: 44px; }
body article.card .oos{ grid-column: 2; grid-row: 4; }
body article.card .line-total{ grid-column: 1 / -1; }
body article.card .bulk-cta, body article.card .kit-box{ grid-column: 1 / -1; margin-top: 12px; }
.bulk-cta-main{ font-size: 15px !important; font-weight: 800 !important; }

@media (min-width: 760px){
  body .grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  body article.card{ grid-template-columns: 132px 1fr; }
  body article.card .thumb{ width: 132px !important; height: 132px !important; }
}

.btn{ font-weight: 800; }
.btn.lg{ font-size: 16px; }
.perks h4, .notice h4{ font-size: 18px; font-weight: 900; }
.perks p, .notice li{ font-size: 15px; }
.cartbar .amount{ font-weight: 800; }

/* checkout: Telegram 10% field */
.tg-field input{ border-color: var(--bjp-gold); }
.tg-badge{ display:inline-block; margin-left:6px; padding:2px 9px; border-radius: var(--r-pill); background: var(--bjp-blue); color: var(--ink); font-size: 11.5px; font-weight: 800; vertical-align: 1px; }
.field .hint{ display:block; margin-top:5px; font-size: 12.5px; color: var(--muted); }
.welcome-note{ margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

/* refer-a-friend popup, bottom left; lifts above the cart bar when it shows */
.refer-pop{
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  width: min(330px, calc(100vw - 32px)); padding: 20px 20px 16px;
  background: #fff; border: 3px solid var(--bjp-blue); border-radius: 18px;
  box-shadow: 0 14px 40px rgba(18,23,28,.18);
}
.refer-pop[hidden]{ display: none; }
.cartbar.show ~ .refer-pop{ bottom: calc(96px + env(safe-area-inset-bottom)); }
.refer-big{ margin: 0 0 8px; font-size: 27px; font-weight: 900; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); text-transform: uppercase; }
.refer-big span{ background: var(--bjp-blue); padding: 0 6px; border-radius: 6px; }
.refer-how{ margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-70); }
.refer-how a{ color: var(--ink); font-weight: 700; word-break: break-all; }
.refer-x{ position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
/* the big hero logo is the brand on the shop page; the header keeps it on checkout steps */
body:has(#view-catalogue:not(.hidden)) .site-header .brand{ display: none; }
body:has(#view-catalogue:not(.hidden)) .site-header .inner{ justify-content: center; }
body:has(#view-catalogue:not(.hidden)) .trust-badges{ text-align: center; }
@media (max-width: 420px){
  .refer-pop{ padding: 16px 16px 13px; }
  .refer-big{ font-size: 23px; }
  .refer-how{ font-size: 12.5px; }
}

/* =====================================================================
   Koby 18 Oct (4:52pm): top banner, add-ons sheet, shipping protection,
   "make everything bold and loud". Injected app.js card styles need the
   `body` prefix or !important to lose.
   ===================================================================== */
.top-banner{
  background: var(--ink); color: #fff; text-align: center;
  padding: 11px 14px; font-size: 15px; line-height: 1.3;
  font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 4px solid var(--bjp-blue);
}
.top-banner strong{ font-weight: 900; }
@media (max-width: 420px){ .top-banner{ font-size: 13px; padding: 10px 12px; letter-spacing: .02em; } }

/* loud: heavier weights + full-ink text everywhere */
body{ color: var(--ink); font-weight: 500; }
body p, body li, body label, body td{ color: var(--ink); }
body h1, body h2, body h3, body h4{ font-weight: 900 !important; color: var(--ink) !important; letter-spacing: -.015em; }
body .hero-sub{ font-size: 16px !important; font-weight: 800 !important; color: var(--ink) !important; text-transform: uppercase; letter-spacing: .03em; }
body .trust-badges{ font-weight: 800 !important; color: var(--ink) !important; }
body .ship-strip{ border: 3px solid var(--ink) !important; }
body .ship-strip li span, body .ship-quick strong{ font-weight: 900 !important; color: var(--ink) !important; text-transform: uppercase; }
body article.card{ border: 2px solid var(--ink) !important; }
body article.card h3{ font-weight: 900 !important; font-size: 20px !important; }
body article.card .variant{ font-weight: 800 !important; color: var(--ink) !important; }
body article.card .desc{ color: var(--ink-70) !important; font-weight: 600 !important; }
body article.card .price, body article.card .price .price-now{ font-weight: 900 !important; font-size: 23px !important; color: var(--ink) !important; }
body .btn, body article.card > .pp-add, body .pp-add{ font-weight: 900 !important; text-transform: uppercase; letter-spacing: .04em; border: 2px solid var(--ink) !important; }
body .chip{ font-weight: 800 !important; border: 2px solid var(--ink) !important; color: var(--ink) !important; }
body .chip[aria-pressed="true"]{ background: var(--ink) !important; color: #fff !important; }
body .cat-heading{ font-size: 25px !important; }
body .cartbar{ border-top: 4px solid var(--ink) !important; }
body .cartbar .amount{ font-weight: 900 !important; font-size: 26px !important; }
body .cartbar .label, body .cartbar .sub{ font-weight: 800 !important; color: var(--ink) !important; }
body .field label, body .step-label{ font-weight: 800 !important; color: var(--ink) !important; }
body .field input, body .field select, body .field textarea{ border: 2px solid var(--ink) !important; font-weight: 600; }
body .summary-table td{ font-weight: 700; }
body .summary-table tr.tot td{ font-weight: 900 !important; font-size: 19px !important; }
body .summary-table tr.gift td{ color: var(--ok) !important; font-weight: 800 !important; }

/* shipping protection on the review step */
.protect-box{
  display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 4px; padding: 14px 16px;
  border: 3px solid var(--ink); border-radius: 14px; background: var(--bjp-blue); cursor: pointer;
}
.protect-box input{ width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.protect-txt{ display: flex; flex-direction: column; gap: 3px; }
.protect-txt strong{ font-size: 16px; font-weight: 900; text-transform: uppercase; }
.protect-txt em{ font-style: normal; }
.protect-txt span{ font-size: 13.5px; font-weight: 600; }

/* add-ons sheet: one item at a time, prev/next, + Add */
.upsell{ position: fixed; inset: 0; z-index: 80; background: rgba(18,23,28,.55); display: flex; align-items: flex-end; justify-content: center; }
.upsell[hidden]{ display: none; }
.upsell-sheet{
  position: relative; width: min(520px, 100%); background: #fff; border-top: 5px solid var(--ink);
  border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(18,23,28,.25);
}
@media (min-width: 640px){ .upsell{ align-items: center; } .upsell-sheet{ border-radius: 20px; border: 4px solid var(--ink); } }
.upsell-sheet h3{ margin: 0 40px 4px 0; font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.upsell-sub{ margin: 0 0 14px; font-size: 13.5px; font-weight: 700; }
.upsell-x{ position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); }
.upsell-item{ display: flex; align-items: center; gap: 14px; padding: 12px; border: 2px solid var(--ink); border-radius: 14px; }
.upsell-item[hidden]{ display: none; }
.upsell-item img{ width: 84px; height: 84px; object-fit: contain; border-radius: 10px; background: var(--wash); flex: none; }
.upsell-info{ display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.upsell-info strong{ font-size: 17px; font-weight: 900; }
.upsell-info span{ font-size: 13px; font-weight: 700; color: var(--ink-70); }
.upsell-info b{ font-size: 19px; font-weight: 900; }
.upsell-add{ flex: none; min-height: 44px; padding: 10px 16px; border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--ink); color: #fff; font: 900 15px var(--sans); cursor: pointer; }
.upsell-add.on{ background: var(--ok); border-color: var(--ok); }
.upsell-nav{ display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 14px; font-weight: 800; }
.upsell-nav button{ width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.upsell-skip{ display: block; margin: 10px auto 0; border: 0; background: none; font: 700 14px var(--sans); color: var(--ink-70); text-decoration: underline; cursor: pointer; min-height: 40px; }

/* ===== motion layer (assets/js/motion.js adds html.mx; nothing here runs under reduced motion) ===== */
@media (prefers-reduced-motion: no-preference){
  /* banner: slow light sweep */
  .top-banner{ position: relative; overflow: hidden; }
  .top-banner::after{
    content:""; position:absolute; inset:0 auto 0 -40%; width:40%; pointer-events:none;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    animation: mx-sweep 4.5s ease-in-out 1.2s infinite;
  }
  /* hero logo: rise in, then a chrome shine across the logo's own shape */
  .mx .hero-mark{ animation: mx-rise .9s cubic-bezier(.2,.8,.2,1) both; }
  .mx .hero-sub{ animation: mx-rise .9s cubic-bezier(.2,.8,.2,1) .25s both; }
  .mx-shine{ position: relative; display: block; width: min(88vw, 460px); margin: 0 auto; }
  .mx-shine .hero-mark{ width: 100%; }
  .mx-shine::after{
    content:""; position:absolute; inset:0; pointer-events:none;
    -webkit-mask: var(--mx-logo) center / contain no-repeat; mask: var(--mx-logo) center / contain no-repeat;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
    animation: mx-shine 5s ease-in-out 1.1s infinite;
  }
  /* reveals */
  .mx .mx-r{ opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
  .mx .mx-r.mx-in{ opacity: 1; transform: none; }
  /* shipping icons: pop, then a gentle idle bob */
  .mx .ship-strip.mx-in svg{ animation: mx-pop .5s cubic-bezier(.3,1.6,.5,1) both, mx-bob 3s ease-in-out 1s infinite; }
  .mx .ship-strip.mx-in li:nth-child(2) svg{ animation-delay: .12s, 1.4s; }
  .mx .ship-strip.mx-in li:nth-child(3) svg{ animation-delay: .24s, 1.8s; }
  /* cards: lift on hover, vial tilts up */
  body .card{ transition: transform .25s ease, box-shadow .25s ease, opacity .55s ease; }
  body .card img{ transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  @media (hover: hover){
    body .card:hover{ transform: translateY(-4px); box-shadow: 0 14px 28px rgba(18,23,28,.14); }
    body .card:hover img{ transform: scale(1.06) rotate(-2deg); }
  }
  body .card:active{ transform: scale(.985); }
  /* buttons: press feel */
  body .btn, body .upsell-add{ transition: transform .15s ease, background-color .2s ease; }
  body .btn:active:not([disabled]), body .upsell-add:active{ transform: scale(.96); }
  /* cart: bump on change, ready-to-go pulse on the checkout button */
  .mx-bump{ display: inline-block; transform-origin: left center; animation: mx-bump .4s cubic-bezier(.3,1.6,.5,1); }
  .cartbar.show #to-details:not([disabled]){ animation: mx-pulse 2.2s ease-in-out 1s infinite; }
  /* add-ons sheet slides up */
  .upsell:not([hidden]) .upsell-sheet{ animation: mx-up .35s cubic-bezier(.2,.8,.2,1); }
}
@keyframes mx-sweep{ 0%{ left:-40% } 60%,100%{ left:120% } }
@keyframes mx-shine{ 0%{ background-position: -150% 0 } 45%,100%{ background-position: 250% 0 } }
@keyframes mx-rise{ from{ opacity:0; transform: translateY(16px) scale(.96) } to{ opacity:1; transform:none } }
@keyframes mx-pop{ from{ opacity:0; transform: scale(.4) } to{ opacity:1; transform: scale(1) } }
@keyframes mx-bob{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-3px) } }
@keyframes mx-bump{ 0%{ transform: scale(1) } 40%{ transform: scale(1.08) } 100%{ transform: scale(1) } }
@keyframes mx-pulse{ 0%,100%{ box-shadow: 0 0 0 0 rgba(18,23,28,.35) } 50%{ box-shadow: 0 0 0 8px rgba(18,23,28,0) } }
@keyframes mx-up{ from{ transform: translateY(40px); opacity:.4 } to{ transform:none; opacity:1 } }

/* cart-recovery notice under the email field */
.fnote{display:block;margin-top:6px;font-size:12px;line-height:17px;color:#5a6670;}

/* review step: discount code (Koby 4 Nov) */
.code-box{ margin: 14px 0 0; }
.code-box label{ display:block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.code-row{ display:flex; gap: 8px; }
.code-row input{ flex: 1 1 auto; min-width: 0; padding: 11px 12px; border: 1.5px solid var(--bjp-gold); border-radius: 10px; font: inherit; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; background:#fff; }
.code-apply{ flex: 0 0 auto; padding: 0 18px; border: 0; border-radius: 10px; background: var(--bjp-blue); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.code-apply:disabled{ opacity: .6; cursor: default; }
.code-msg{ margin: 6px 0 0; font-size: 12.5px; min-height: 1em; }
.code-msg.good{ color: #1E6B3A; font-weight: 700; }
.code-msg.bad{ color: #B3261E; }

/* PayID first, impossible to miss (Koby 4 Nov: "make the bank transfer very obvious") */
.payid-box{ border: 3px solid var(--ink); border-radius: 14px; background: var(--bjp-blue, #BFE7FF); padding: 16px 14px 14px; margin: 0 0 8px; }
.payid-head{ font-size: clamp(24px, 6.4vw, 30px); line-height: 1.1; margin: 0 0 6px; text-align: center; color: var(--ink); }
.payid-sub{ text-align: center; font-size: 15px; margin: 0 0 12px; color: var(--ink); }
.payid-box .pay-list{ background: var(--paper); }
.payid-box .pay-note{ background: var(--paper); }
/* shop-page banner + review-step callout (only rendered when payment.primary = 'payid') */
body .payid-banner{ background: var(--ink); color: #fff; text-align: center; padding: 10px 14px; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }
body .payid-callout{ display: block; border: 3px solid var(--ink); background: var(--bjp-blue, #BFE7FF); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
body .payid-callout strong{ display: block; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
body .payid-callout span{ font-size: 13px; color: var(--ink); }

/* ---- Product pages (22 Nov 2026) ---- */
.card h3 .pd-link{ color: inherit; text-decoration: none; }
.card h3 .pd-link:hover{ text-decoration: underline; }
.card .pd-more{ margin: 2px 0 8px; font-size: 12.5px; }
.card .pd-more a{ color: var(--ink-70); }
.card:target{ outline: 3px solid var(--gold); outline-offset: 2px; }
.product-page{ padding-top: 18px; padding-bottom: 40px; }
.product-page .crumbs{ font-size: 14px; margin: 0 0 16px; }
.product-page .crumbs a{ color: var(--ink-70); }
.pd-grid{ display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 760px){ .pd-grid{ grid-template-columns: 1fr 1fr; gap: 40px; } }
.pd-media{ background: var(--wash); border-radius: var(--r-lg); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pd-media img{ width: 100%; height: 100%; object-fit: cover; }
.pd-media .ph{ font-size: 64px; font-weight: 800; color: var(--ink-70); }
.pd-cat{ font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.pd-title{ font-size: clamp(28px, 6vw, 40px); line-height: 1.05; margin: 0; }
.pd-variant{ font-family: var(--mono); color: var(--ink-70); margin: 6px 0 0; }
.pd-price{ font-family: var(--mono); font-size: 26px; font-weight: 500; margin: 16px 0 18px; }
.pd-price span{ font-size: 13px; color: var(--muted); }
.pd-specs{ display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); font-size: 14px; }
.pd-specs dt{ color: var(--muted); }
.pd-specs dd{ margin: 0; }
.pd-specs .mono{ font-family: var(--mono); }
.pd-desc{ font-size: 14px; color: var(--ink-70); margin: 16px 0 0; }
.pd-coa{ margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--rule); }
.pd-coa h2{ font-size: 20px; margin: 0 0 12px; }
.coa-meta{ display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; margin: 0 0 12px; }
.coa-pages{ display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px){ .coa-pages{ grid-template-columns: 1fr 1fr; } }
.coa-pages img{ width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--r-md); }
.coa-none{ background: var(--wash); border-radius: var(--r-md); padding: 14px 16px; font-size: 14px; margin: 0; }

/* ---- NOWPayments card widget (25 Nov 2026) ---- */
.np-widget{ display: flex; justify-content: center; margin: 4px 0 6px; }
.np-widget iframe{ width: 100%; max-width: 410px; height: 696px; border: 0; border-radius: var(--r-lg); background: var(--paper); }

/* ===== 27 Nov 2026: Black Friday, payment choice, Afterpay, quantity picker ===== */
.sale-banner{ background: var(--ink); color: #fff; text-align: center; padding: 10px 14px; font-size: 14px; letter-spacing: .3px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; }
.sale-banner strong{ font-weight: 900; text-transform: uppercase; color: #D4AF37; }
.sale-banner .sale-clock{ font-family: 'IBM Plex Mono', monospace; font-size: 13px; background: rgba(255,255,255,.12); border-radius: 6px; padding: 2px 8px; }
.card .price.sale-price, body article.card .price.sale-price{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price .price-was{ font-size: 13px !important; font-weight: 500 !important; color: #8b8b8b !important; text-decoration: line-through; }
.price .sale-tag, .pd-price .sale-tag{ font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #D4AF37; color: #fff; border-radius: 20px; padding: 2px 8px; }
.pay-choice{ border: 1px solid #E3F2FB; border-radius: 12px; padding: 12px 14px; margin: 16px 0; }
.pay-choice legend{ font-weight: 700; font-size: 15px; padding: 0 6px; color: var(--ink); }
.pay-opt{ display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.pay-opt + .pay-opt{ margin-top: 6px; }
.pay-opt:has(input:checked){ border-color: var(--ink); background: #F4FAFE; }
.pay-opt input{ width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--ink); }
.pay-opt input:disabled + .pay-opt-txt{ opacity: .5; }
.pay-opt-txt{ display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.pay-opt-txt strong{ font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.save-tag{ font-style: normal; font-size: 11px; font-weight: 800; background: #D4AF37; color: #fff; border-radius: 20px; padding: 2px 8px; }
.ap-badge{ display: inline-block; background: #B2FCE4; color: #000; font-weight: 800; font-size: 12px; line-height: 1; letter-spacing: -.02em; border-radius: 20px; padding: 4px 9px; vertical-align: middle; }
.bulk-cta-ap, .kit-ap{ display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.kit-ap{ flex-basis: 100%; }
.payid-callout .payid-id{ font-family: 'IBM Plex Mono', monospace; font-size: 15px; display: inline; }
.payid-callout span{ display: block; margin-top: 4px; }
.payid-callout .ref-warn{ margin-top: 10px; padding: 8px 10px; background: #fff; border-radius: 8px; border: 2px solid #D4AF37; font-size: 13px; }
.qty-pick{ border: 0; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.qty-pick legend{ font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.qty-opt{ position: relative; display: flex; flex-direction: column; gap: 2px; border: 2px solid #E3F2FB; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.qty-opt:has(input:checked){ border-color: var(--ink); background: #F4FAFE; }
.qty-opt input{ position: absolute; opacity: 0; pointer-events: none; }
.qty-opt .q{ font-weight: 800; font-size: 15px; color: var(--ink); }
.qty-opt .u{ font-size: 13px; color: var(--ink); }
.qty-opt .t{ font-size: 12px; color: var(--muted); }
.qty-opt .off{ position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 800; background: #D4AF37; color: #fff; border-radius: 20px; padding: 2px 7px; }
.qty-opt .ap{ font-size: 11px; color: var(--ink); margin-top: 4px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.qty-opt.best{ border-color: #D4AF37; }
.pay-alt{ text-align: center; font-size: 13px; color: var(--muted); margin: 18px 0 6px; }
.ap-box .btn{ background: #000; color: #B2FCE4; }

/* 27 Nov: Afterpay availability strip + product price line (only rendered when Afterpay is enabled) */
.ap-strip{ background: #B2FCE4; color: #000; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ap-strip .ap-badge{ background: #000; color: #B2FCE4; }
.pd-ap{ display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ink); margin: -4px 0 14px; }
/* 27 Nov: clickable product cards */
article.card{ cursor: pointer; }
article.card a.thumb{ color: inherit; text-decoration: none; }
article.card .qty, article.card button, article.card input{ cursor: auto; }
article.card button{ cursor: pointer; }

/* ===== 28 Nov: one-page checkout (Koby: "one step like Tagada, more trusting") ===== */
.co{ max-width: var(--shell); margin: 0 auto; padding: 22px 20px 60px; display: grid; gap: 18px; }
.co-top{ display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 14px; }
.co-back{ background: none; border: 0; padding: 6px 0; font: 600 13px var(--sans); color: var(--ink-70); cursor: pointer; }
.co-back:hover{ color: var(--ink); }
.co-secure, .co-safe{ display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--ok); }
.co-secure svg, .co-safe svg{ width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.co-sec{ background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 20px 18px 6px; margin-bottom: 14px; }
.co-sec h3{ display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 14px; }
.co-n{ display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bjp-blue); color: var(--ink); font: 800 12px var(--sans); }
.co-pay{ padding-bottom: 20px; }
.co-pay .review-block, .co-pay .perks{ margin: 0 0 14px !important; }
.co-place{ margin-top: 14px; font-size: 15px; }
.co-safe{ justify-content: center; width: 100%; margin: 12px 0 0; font-weight: 600; color: var(--muted); text-align: center; }
.co-safe svg{ color: var(--ok); }
.co-sum{ border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--wash); }
.co-sum > summary{ list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 14px; }
.co-sum > summary::-webkit-details-marker{ display: none; }
.co-sum > summary span::after{ content: ' \25BE'; font-size: 11px; color: var(--muted); }
.co-sum[open] > summary span::after{ content: ' \25B4'; }
.co-sum > summary b{ font: 700 16px var(--mono); }
.co-sum-body{ padding: 0 16px 16px; }
.co-sum-body .review-block{ background: var(--paper); margin: 0; }
.co-trust{ list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.co-trust li{ display: grid; gap: 2px; padding-left: 26px; position: relative; font-size: 12.5px; color: var(--ink-70); }
.co-trust li::before{ content: ''; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.co-trust b{ color: var(--ink); font-size: 13px; }
.co-trust a{ color: var(--ink); }
@media (min-width: 900px){
  .co{ grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "top top" "main sum"; column-gap: 34px; align-items: start; padding-top: 28px; }
  .co-top{ grid-area: top; }
  .co-main{ grid-area: main; }
  .co-sum{ grid-area: sum; position: sticky; top: 18px; }
  .co-sum > summary{ cursor: default; pointer-events: none; }
  .co-sum > summary span::after{ content: ''; }
}
@media (max-width: 899px){
  .co{ padding: 16px 14px 50px; gap: 14px; }
  .co-sec{ padding: 18px 14px 4px; }
}
body.on-checkout .payid-banner, body.on-checkout .sale-banner, body.on-checkout .ap-strip, body.on-checkout .top-banner{ display: none !important; }
.co-pay .pay-choice{ border: 0; padding: 0; background: none; }
.co-pay .pay-choice legend{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.co-pay #std-next h4{ display: none; }
.co-pay #std-next{ background: var(--wash); border: 0; }

/* 28 Nov 2026: copyable PayID / bank rows on checkout */
.payid-callout .pc-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; background:rgba(255,255,255,.65); border-radius:8px; padding:6px 8px; }
.payid-callout .pc-k{ display:inline; margin:0; font-size:12px; min-width:104px; opacity:.8; }
.payid-callout .pc-row .payid-id{ flex:1 1 auto; word-break:break-all; }
.payid-callout .pc-copy{ margin:0 0 0 auto; border:2px solid var(--ink); background:#fff; color:var(--ink); border-radius:6px; padding:3px 10px; font-size:12px; font-weight:700; cursor:pointer; }
.payid-callout .pc-copy.done{ background:#1f9d55; border-color:#1f9d55; color:#fff; }

/* 28 Nov 2026 (Koby: too many headers): sale + free-shipping share one bar; afterpay moved onto each card */
.sale-banner .sale-ship{ flex-basis: 100%; font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: .9; }
.card-ap{ display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink); margin: -2px 0 8px; }
.card-ap .ap-badge{ font-size: 11px; padding: 3px 8px; }
