/* ─────────────────────────────────────────────────────────────
   PYKE. — Components. Wordmark, button, nav, ticker, drawer,
   form fields, bag mockup, mini canister.
   ───────────────────────────────────────────────────────────── */

/* ════════════════════════════════════════
   WORDMARK
   ────────────────────────────────────────
   The PYKE. wordmark has two sanctioned variants. Letters are flat-fill
   (no contrasting outlines on K and E — matches the final product
   artwork). The neutral letter (Y) inverts to match background.

     pk-wm--primary   → on light (cream / white): Y is ink
     pk-wm--reversed  → on dark  (ink / footer):  Y is cream

   P / K / E / dot colours are constant across variants. Primary is
   canonical; use Reversed explicitly on ink surfaces. No
   instance-specific Y/K/E colour overrides live anywhere else.
   ════════════════════════════════════════ */
.pk-wm {
  font-family: var(--display);
  letter-spacing: -0.01em;
  line-height: 0.88;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.pk-wm .p   { color: #ff2600; -webkit-text-stroke: 0.058em #ff2600; paint-order: stroke fill; }
.pk-wm .k   { color: #00cfff; }
.pk-wm .e   { color: #e8d47a; }
.pk-wm .dot { color: #ff2600; -webkit-text-stroke: 0; }

/* PRIMARY — light backgrounds. Only Y inverts; K and E stay flat fills. */
.pk-wm--primary .y { color: #1a1410; -webkit-text-stroke: 0.058em #1a1410; paint-order: stroke fill; }

/* REVERSED — ink / dark backgrounds. Only Y inverts; K and E stay flat fills. */
.pk-wm--reversed .y { color: #f4eed8; -webkit-text-stroke: 0.058em #f4eed8; paint-order: stroke fill; }

/* ════════════════════════════════════════
   BUTTONS — hard 4px shadow, square corners
   ════════════════════════════════════════ */
.btn {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.06em;
  padding: 14px 24px;
  border: var(--border);
  background: var(--ink);
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
  text-transform: uppercase;
  user-select: none;
}
.btn:hover  { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }

.btn .arr { font-size: 1.2em; line-height: 0; transform: translateY(-1px); }
.btn .dot { color: var(--red); }

.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--cream  { background: var(--cream); color: var(--ink); }
.btn--red    { background: var(--red); color: var(--cream); }
.btn--ink-red-shadow { background: var(--ink); color: var(--cream); box-shadow: var(--shadow-red); }
.btn--ink-red-shadow:hover { box-shadow: 6px 6px 0 var(--red); }

.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 18px 28px; font-size: 21px; }

/* Link button — no shadow, no border */
.btn-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  cursor: pointer;
}
.btn-link:hover { color: var(--red); border-color: var(--red); }

/* ════════════════════════════════════════
   FORMS
   ════════════════════════════════════════ */
.field {
  display: block;
  position: relative;
}
.field-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  display: block;
}
.field-input,
.field-select {
  font-family: var(--body);
  font-size: 15px;
  width: 100%;
  padding: 14px 16px;
  background: var(--cream);
  border: var(--border);
  color: var(--ink);
  appearance: none;
  border-radius: 0;
}
.field-input::placeholder { color: var(--ink-faint); }
.field-input.error,
.field-select.error { border-color: var(--error); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) {
  .field-row, .field-row.three { grid-template-columns: 1fr; }
}

.field-error {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--error);
  margin-top: 6px;
}
.field-error::before { content: '// '; }

.field-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* Inline newsletter */
.signup-inline {
  display: flex;
  gap: 0;
  max-width: 460px;
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--cream);
}
.signup-inline input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  background: transparent;
  font-family: var(--body);
  font-size: 15px;
}
.signup-inline input:focus { outline: 0; }
.signup-inline button {
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.06em;
  padding: 0 22px;
  border: 0;
  border-left: var(--border);
}
.signup-inline button:hover { background: var(--red); color: var(--cream); }

/* ════════════════════════════════════════
   SITE HEAD — sticky ink bar + nav
   ════════════════════════════════════════ */
.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--ink);
  border-bottom: 1.5px solid var(--seam);
}
.ink-bar {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--ink);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.07em;
  color: var(--yellow);
  border-bottom: 1px solid var(--seam);
}
.ink-bar .rhs {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cream);
  opacity: 0.65;
}
@media (max-width: 720px) {
  .ink-bar .rhs { display: none; }
  .ink-bar { font-size: 11px; }
}

.nav {
  display: flex;
  align-items: stretch;
  height: 60px;
  background: var(--ink);
}
.nav-logo {
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo .pk-wm { font-size: 30px; }
.nav-spacer { flex: 1; }
.nav-links {
  display: flex;
  align-items: stretch;
}
.nav-links a {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--yellow);
  padding: 0 16px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--red); }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

.nav-cart {
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.06em;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1.5px solid var(--seam);
}
.nav-cart .badge {
  background: var(--red);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}
.nav-cart:hover { background: var(--red); color: var(--cream); }

/* ════════════════════════════════════════
   TICKER — full-width brand strip below the hero.
   Two identical .ticker-group divs inside .ticker-track;
   track is width: max-content (literally two copies wide)
   so translateX(-50%) produces a seamless loop.
   ════════════════════════════════════════ */
.ticker {
  background: var(--ink);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  height: 56px;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  animation: ticker-scroll 32s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--yellow);
  white-space: nowrap;
}
.ticker-group .dia { color: var(--red); font-size: 14px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ════════════════════════════════════════
   CART DRAWER
   ════════════════════════════════════════ */
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(26, 20, 16, 0.55);
  z-index: var(--z-drawer);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 480px;
  background: var(--cream);
  border-left: var(--border);
  z-index: calc(var(--z-drawer) + 1);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  background: var(--ink);
  color: var(--yellow);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border);
}
.drawer-head .title {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.06em;
}
.drawer-head .close {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--yellow);
  text-transform: uppercase;
}
.drawer-head .close:hover { color: var(--red); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
}
.drawer-empty {
  text-align: center;
  padding: 60px 20px;
  font-family: var(--body);
  color: var(--ink-soft);
  font-size: 14px;
}
.drawer-empty .big {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
}

.line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(26, 20, 16, 0.12);
}
.line-thumb {
  width: 64px; height: 80px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  border: var(--border-thin);
  position: relative;
  overflow: hidden;
}
.line-thumb .pk-wm { font-size: 22px; }
.line-name {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.line-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.line-qty {
  display: inline-flex;
  border: var(--border-thin);
  align-items: stretch;
}
.line-qty button {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 16px;
}
.line-qty button:hover { background: var(--ink); color: var(--yellow); }
.line-qty .n {
  min-width: 32px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  border-left: var(--border-thin);
  border-right: var(--border-thin);
}
.line-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.line-price {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.02em;
}
.line-remove {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.line-remove:hover { color: var(--red); }

/* Cross-sell in drawer */
.cross-sell {
  background: var(--ink);
  color: var(--cream);
  padding: 18px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
}
.cross-sell .label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--yellow);
  margin-bottom: 4px;
}
.cross-sell .name {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
}
.cross-sell .add {
  font-family: var(--display);
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  border: 1.5px solid var(--yellow);
}
.cross-sell .add:hover { background: var(--red); color: var(--cream); border-color: var(--red); }
.cross-sell .thumb {
  width: 56px; height: 70px;
  background: var(--cream);
  border: 1.5px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-foot {
  border-top: var(--border);
  background: var(--cream);
  padding: 20px 22px 24px;
}
.drawer-totals {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
}
.drawer-totals .num { color: var(--red); }
.drawer-foot .ship-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.drawer-foot .progress {
  height: 6px;
  background: rgba(26, 20, 16, 0.12);
  margin-bottom: 8px;
}
.drawer-foot .progress > i {
  display: block;
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width 0.25s ease;
}


/* ════════════════════════════════════════
   PRODUCT IMAGES
   ────────────────────────────────────────
   The bag and the canister are now rendered as photographs, not
   hand-built CSS. The old .bag-3d / .hr-bag / .pc-bag / .canister /
   .can-* CSS has been removed. Surfaces use these simple wrappers.
   ════════════════════════════════════════ */

.hero-bag-photo {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.45));
}
.hero-bag-photo img { display: block; width: 100%; height: auto; }

.pc-bag-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.pc-bag-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.4));
}
.pc-bag-caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(244, 238, 216, 0.55);
  text-transform: uppercase;
  margin-top: 18px;
  text-align: center;
}

/* Wide editorial banner — the 5-bag family scene. Sits between Purchase
   and How as the "what you're buying" pause. */
.bag-family-photo {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.32));
}
.bag-family-photo img { display: block; width: 100%; height: auto; }

/* Floating subscribe teaser — canister photo + tape + caption. */
.pc-gift {
  position: absolute;
  bottom: -8px;
  right: -38px;
  width: 130px;
  z-index: 4;
  transform: rotate(5deg);
  transition: transform 0.4s ease, opacity 0.4s ease;
  text-align: center;
}
.pc-gift.hidden {
  opacity: 0;
  transform: rotate(5deg) translateX(40px);
  pointer-events: none;
}
.pc-gift img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}
.pc-gift .gift-tape {
  position: absolute;
  top: -14px;
  left: -10px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border: 2px solid var(--cream);
  z-index: 5;
  box-shadow: 3px 3px 0 var(--cream);
  text-transform: uppercase;
}
.pc-gift .cap {
  margin-top: 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--yellow);
  line-height: 1.6;
  text-transform: uppercase;
}
.pc-gift .cap b {
  display: block;
  font-family: var(--display);
  font-weight: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream);
}

/* ── BEAN MARK utility ── (use as a reusable secondary brand graphic) */
.pk-bean-mark { display: inline-block; width: 100%; height: auto; overflow: visible; }

/* ── STRIPE BAND utility ── (the four-block stack on bag side gussets) */
.pk-stripe-band {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--ink);
}
.pk-stripe-band > i { display: block; flex: 1 1 0; }
.pk-stripe-band > .s-red    { background: var(--red); }
.pk-stripe-band > .s-cyan   { background: var(--cyan); }
.pk-stripe-band > .s-teal   { background: var(--teal); }
.pk-stripe-band > .s-yellow { background: var(--yellow); }

/* ════════════════════════════════════════
   PILL — meta chips
   ════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  border-radius: 0;
}
.pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
}
.pill.cyan::before { background: var(--cyan); }
.pill.yellow::before { background: var(--yellow); }
.pill.on-ink {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--cream-soft);
}

/* Confirmation block */
.confirm {
  display: block;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink);
  max-width: 460px;
}
.confirm strong {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  border: var(--border-thin);
  box-shadow: var(--shadow);
  z-index: var(--z-toast);
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
  text-transform: uppercase;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Scroll-shadow on sticky head */
.site-head.scrolled { box-shadow: 0 0 0 1px var(--ink), 0 6px 0 -2px var(--ink); }
