@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Press+Start+2P&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0038FF;
  --white: #ffffff;
  --black: #000080;
  --gray: #f2f2f2;
  --mid-gray: #888;
  --red: #FF3B30;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ===== TICKER BANNER ===== */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.site-ticker {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  height: 35px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 99; /* sits below sticky header */
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 90s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-track a {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 14px;
  font-weight: 400;
  color: #FF8800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding: 0 10px;
  transition: color 0.2s;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(255, 136, 0, 0.55);
  line-height: 1;
}

/* Whole link turns green when market is ≥50% (▲) */
.ticker-track a:has(.ticker-up) {
  color: #33DD55;
  text-shadow: 0 0 8px rgba(51, 221, 85, 0.55);
}

/* Whole link turns red when market is <50% (▼) */
.ticker-track a:has(.ticker-down) {
  color: #FF3333;
  text-shadow: 0 0 8px rgba(255, 51, 51, 0.55);
}

.ticker-track a:hover {
  opacity: 0.8;
}

/* Password + Shop pages — muted navy at rest, reveal color on hover */
.page-password .ticker-track a,
.page-shop .ticker-track a,
.page-password .ticker-track a:has(.ticker-up),
.page-shop .ticker-track a:has(.ticker-up),
.page-password .ticker-track a:has(.ticker-down),
.page-shop .ticker-track a:has(.ticker-down) {
  color: rgba(0, 0, 128, 0.45);
  text-shadow: none;
  transition: color 0.25s, text-shadow 0.25s;
}
.page-password .ticker-up,
.page-shop .ticker-up,
.page-password .ticker-down,
.page-shop .ticker-down {
  color: rgba(0, 0, 128, 0.45);
  text-shadow: none;
  transition: color 0.25s, text-shadow 0.25s;
}

/* Hover reveals market direction color */
.page-password .ticker-track a:has(.ticker-up):hover,
.page-shop .ticker-track a:has(.ticker-up):hover,
.page-password .ticker-track a:has(.ticker-up):hover .ticker-up,
.page-shop .ticker-track a:has(.ticker-up):hover .ticker-up {
  color: #33DD55;
  text-shadow: 0 0 10px rgba(51, 221, 85, 0.65);
  opacity: 1;
}
.page-password .ticker-track a:has(.ticker-down):hover,
.page-shop .ticker-track a:has(.ticker-down):hover,
.page-password .ticker-track a:has(.ticker-down):hover .ticker-down,
.page-shop .ticker-track a:has(.ticker-down):hover .ticker-down {
  color: #FF3333;
  text-shadow: 0 0 10px rgba(255, 51, 51, 0.65);
  opacity: 1;
}

.ticker-sep {
  display: none;
}

/* Directional arrows inside ticker items */
.ticker-up {
  color: #33DD55;
  font-size: 1em;
  vertical-align: middle;
  text-shadow: 0 0 8px rgba(50, 220, 80, 0.6);
  margin-right: 5px;
}

.ticker-down {
  color: #FF3333;
  font-size: 1em;
  vertical-align: middle;
  text-shadow: 0 0 8px rgba(255, 50, 50, 0.55);
  margin-right: 5px;
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  width: 100%;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  position: relative;
}

/* ── Left slot: SHOP link ────────────────────────────────── */
.nav-left {
  display: flex;
  align-items: center;
}

/* ── Bordered pill buttons: SHOP + CART ──────────────────── */
.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid #000080;
  background: #fff;
  color: #000080;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.15s;
}
.nav-pill-btn:hover { background: #efefef; }

/* SHOP link — same font/color as pill but no border or background */
.nav-shop-link {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000080;
  text-decoration: none;
  padding: 4px 10px;
  transition: opacity 0.15s;
}
.nav-shop-link:hover { opacity: 0.6; }

/* Badge on icon cart button */
.nav-icon-btn .cart-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #000080;
  color: #fff;
  border-radius: 50%;
  font-size: 7px;
  min-width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ── Center slot: POLYMARKET wordmark ────────────────────── */
.nav-wordmark {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 19.8px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #000080;
  white-space: nowrap;
  justify-self: center;
}

/* ── Legacy center (kept for any edge case) ─────────────── */
.nav-center {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-center a,
.nav-center .currency-btn {
  color: var(--black);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.nav-center a:hover,
.nav-center .currency-btn:hover { opacity: 1; }

.currency-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--black);
  opacity: 0.75;
}

.nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(0,0,0,0.15);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  justify-self: end;
}

.nav-icon-btn {
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: opacity 0.15s;
  position: relative;
  opacity: 0.75;
}

.nav-icon-btn:hover { opacity: 1; }

.nav-icon-btn svg { width: 18px; height: 18px; }

/* ── Employee login modal ─────────────────────────────────── */
#am-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.30);
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 68px;
  padding-right: 16px;
}

#am-card {
  background: #fff;
  width: 284px;
  padding: 28px 28px 24px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.am-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 16px;
}

.am-email-display {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #000080;
  margin: 0 0 20px;
  word-break: break-all;
}

.am-input {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  outline: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #000080;
  padding: 6px 0 8px;
  background: transparent;
  margin-bottom: 20px;
}

.am-input::placeholder { color: #ccc; letter-spacing: 0.08em; }
.am-input:focus { border-bottom-color: #000080; }

.am-btn {
  display: block;
  width: 100%;
  padding: 11px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}

.am-btn-primary {
  background: #000080;
  color: #fff;
}
.am-btn-primary:hover { background: #00006a; }

.am-btn-outline {
  background: transparent;
  color: #000080;
  border: 1px solid #000080;
}
.am-btn-outline:hover { background: #efefef; }

.am-err {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff4444;
  margin: 10px 0 0;
}

/* ? help button — now floating bottom-right, nav version kept for legacy */
.nav-help-btn {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #000080;
  text-decoration: none;
  opacity: 0.75;
}

/* Floating ? button — fixed bottom-right on every page */
.floating-help-btn {
  position: fixed;
  bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  right: 32px;
  z-index: 500;
  color: #000080;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s;
  line-height: 1;
}

.floating-help-btn:hover {
  opacity: 1;
}

.cart-badge {
  position: absolute;
  top: 10px;
  right: 6px;
  background: var(--blue);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

/* ===== PASSWORD GATE ===== */
.password-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.password-gate {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.password-form-wrap {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.password-form-wrap h1 {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 400;
}

.password-input-row {
  display: flex;
  border: 1px solid var(--black);
  overflow: hidden;
}

.password-input-row input[type="password"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  background: var(--white);
  color: var(--black);
}

.password-input-row input[type="password"]::placeholder {
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.password-submit-btn {
  background: var(--black);
  color: var(--white);
  padding: 0 20px;
  font-size: 18px;
  font-family: var(--font-mono);
  transition: background 0.15s;
}

.password-submit-btn:hover { background: #222; }

.password-error {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 12px;
}

/* ===== SHOP PAGE ===== */
.shop-main {
  flex: 1;
  padding: 0;
  background: #fff;
}

.shop-heading {
  padding: 28px 20px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  background: #fff;
}

.shop-heading a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-heading .arrow { font-size: 14px; }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid #e8e8e8;
  border-left: 1px solid #e8e8e8;
}

.product-card {
  position: relative;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

/* Contained image — mix-blend-mode: multiply makes white areas in the JPEG transparent */
.product-card-img {
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
  mix-blend-mode: multiply;
}

.product-card:hover .product-card-img { transform: scale(1.04); }

/* Tarot tote is a 1:1 square image; scale it down to match portrait-image cards (~68% width) */
.card-tarot-tote .product-card-img {
  width: calc(68% - 22px);
  height: calc(68% - 22px);
}

.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 20px;
  color: #aaa;
  text-transform: uppercase;
}

/* Info overlay — slides up from bottom on hover */
.product-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.96);
  padding: 10px 12px 11px;
  transform: translateY(100%);
  transition: transform 0.18s ease;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--black);
  border-top: 1px solid #e8e8e8;
}

.product-card:hover .product-card-overlay { transform: translateY(0); }

.product-card-overlay .product-price {
  font-weight: 700;
  display: inline;
}

/* Subscribe Section */
.subscribe-section {
  padding: 48px 20px;
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.subscribe-row {
  display: flex;
  border: 1px solid var(--black);
  overflow: hidden;
}

.subscribe-row input[type="email"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.subscribe-row input[type="email"]::placeholder { color: var(--mid-gray); }

.subscribe-btn {
  background: var(--black);
  color: var(--white);
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 16px;
  transition: background 0.15s;
}

.subscribe-btn:hover { background: #333; }

.subscribe-fine {
  font-size: 10px;
  color: var(--mid-gray);
  margin-top: 10px;
  line-height: 1.5;
}

.subscribe-fine a { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
  background: #ffffff;
  color: #000080;
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 0, 128, 0.12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #000080;
  flex-shrink: 0;
}

.footer-logo svg { width: 18px; height: 18px; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: #000080;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.footer-links a:hover { opacity: 1; }

.footer-copy {
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #000080;
  opacity: 0.6;
  text-align: center;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail-main {
  flex: 1;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: calc(100vh - 52px);
}

.product-image-col {
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow: hidden;
  background: var(--gray);
}

.product-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-info-col {
  padding: 40px 40px 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Size error badge */
.size-error-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  margin-bottom: 20px;
  font-weight: 700;
}

.size-error-badge.hidden { display: none; }

/* Product title row — all on flowing lines with slashes */
.product-title-block {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0;
}

.product-title-block .slash { color: var(--black); margin: 0 6px; }

.product-title-block .underline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.product-title-block .underline-link:hover { opacity: 0.6; }

/* Size select inline */
.size-select-inline {
  display: inline-block;
  position: relative;
}

.size-select-inline select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--black);
  font-family: var(--font-mono);
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
  padding-right: 18px;
  outline: none;
  color: var(--black);
}

.size-select-inline::after {
  content: '▾';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
}

/* CTA links */
.product-cta-add {
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.product-cta-add:hover { opacity: 0.55; }

.product-cta-buy {
  cursor: pointer;
  transition: opacity 0.15s;
}

.product-cta-buy:hover { opacity: 0.55; }

/* Subscribe block on product page */
.product-subscribe-block {
  margin-top: auto;
  padding-top: 48px;
  background: var(--black);
  padding: 20px 24px;
  color: var(--white);
  max-width: 340px;
  margin-top: 60px;
}

.product-subscribe-block .sub-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-sub-row {
  display: flex;
  border: 1px solid rgba(255,255,255,0.4);
}

.product-sub-row input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--white);
  letter-spacing: 0.04em;
}

.product-sub-row input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }

.product-sub-btn {
  color: var(--white);
  padding: 0 14px;
  font-size: 16px;
  border-left: 1px solid rgba(255,255,255,0.4);
  transition: background 0.15s;
}

.product-sub-btn:hover { background: rgba(255,255,255,0.1); }

.product-sub-fine {
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  line-height: 1.5;
}

.product-sub-fine a { color: rgba(255,255,255,0.6); text-decoration: underline; }

/* Related products row */
.related-products-section {
  padding: 0 0 0;
  border-top: 1px solid #e0e0e0;
}

.related-heading {
  padding: 24px 20px 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.related-heading a { display: flex; align-items: center; gap: 8px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid #e8e8e8;
  border-left: 1px solid #e8e8e8;
}

.related-card {
  background: var(--white);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.related-card img {
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  transition: transform 0.35s ease;
}

.related-card:hover img { transform: scale(1.04); }

.related-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  padding: 8px 10px 9px;
  transform: translateY(100%);
  transition: transform 0.18s ease;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
  border-top: 1px solid #e8e8e8;
}

.related-card:hover .related-card-overlay { transform: translateY(0); }

.related-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 12px;
}

/* ===== CART DRAWER ===== */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  height: 100vh;
  background: var(--white);
  border-left: 1px solid #e0e0e0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
}

.cart-drawer.open { transform: translateX(0); }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.cart-drawer-header h2 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}

.cart-close-btn {
  font-size: 20px;
  line-height: 1;
  color: var(--black);
  opacity: 0.6;
  transition: opacity 0.15s;
}

.cart-close-btn:hover { opacity: 1; }

.cart-items { flex: 1; overflow-y: auto; padding: 20px; }

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: var(--gray);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 4px;
}

.cart-item-size {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

/* COLOR + SIZE lines in cart (shared style) */
.cart-item-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid-gray);
  line-height: 1.6;
}

.cart-item-price {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
}

.cart-remove-btn {
  font-size: 18px;
  color: var(--mid-gray);
  align-self: flex-start;
  transition: color 0.15s;
}

.cart-remove-btn:hover { color: var(--black); }

.cart-footer {
  border-top: 1px solid #e0e0e0;
  padding: 20px;
  background: #fff;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

/* ── Physical button row ──────────────────────────────────── */
.cart-btn-row {
  display: flex;
  gap: 10px;
}

/* Outer housing — the light panel the keycap sits in */
.phy-btn {
  flex: 1;
  padding: 7px;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  background: linear-gradient(180deg, #e2e2e2 0%, #d4d4d4 40%, #c8c8c8 100%);
  box-shadow:
    0 3px 8px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    inset 4px 0 10px rgba(0,0,0,0.14),
    inset -4px 0 10px rgba(0,0,0,0.14),
    inset 0 8px 16px rgba(0,0,0,0.22);
  transition: box-shadow 0.1s, transform 0.1s;
}

.phy-btn:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 4px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 8px 18px rgba(0,0,0,0.32);
}

/* The colored keycap */
.phy-btn-keycap {
  width: 100%;
  height: 52px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Specular highlight strip at bottom of keycap */
.phy-btn-keycap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(to top, rgba(255,255,255,0.22) 0%, transparent 100%);
  border-radius: 0 0 4px 4px;
}

/* Green — For Client */
.phy-btn-green .phy-btn-keycap {
  background: linear-gradient(155deg,
    #74c074 0%,
    #50a350 20%,
    #3d8f3d 55%,
    #2e7a2e 100%
  );
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,0.22),
    inset 0 -2px 5px rgba(0,0,0,0.32),
    inset 3px 0 6px rgba(0,0,0,0.18),
    inset -3px 0 6px rgba(0,0,0,0.18);
}

/* Red — For Employee */
.phy-btn-red .phy-btn-keycap {
  background: linear-gradient(155deg,
    #c45858 0%,
    #9e2c2c 20%,
    #7e1919 55%,
    #661010 100%
  );
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,0.14),
    inset 0 -2px 5px rgba(0,0,0,0.38),
    inset 3px 0 6px rgba(0,0,0,0.22),
    inset -3px 0 6px rgba(0,0,0,0.22);
}

.phy-btn-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}

/* ── Cart inline intake form ──────────────────────────────── */
#cartIntakePanel {
  margin-top: 16px;
}

.ci-back {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 18px;
  display: block;
  transition: color 0.15s;
}
.ci-back:hover { color: var(--black); }

.ci-field {
  margin-bottom: 16px;
}

.ci-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 5px;
}

.ci-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--black);
  outline: none;
  transition: border-color 0.15s;
}

.ci-field input:focus {
  border-bottom-color: var(--black);
}

.ci-field input::placeholder {
  color: #ccc;
  letter-spacing: 0.08em;
}

.ci-submit {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 13px 0;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.ci-submit:hover { background: #0000cc; }

.ci-error {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff4444;
  margin-top: 10px;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Order-limit warning in cart drawer */
.cart-limit-warning {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cc2200;
  background: rgba(204, 34, 0, 0.06);
  border: 1px solid rgba(204, 34, 0, 0.20);
  padding: 9px 12px;
  margin-bottom: 14px;
  line-height: 1.6;
  text-align: center;
}

.checkout-btn {
  display: block;
  width: 100%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px;
  text-align: center;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}

.checkout-btn:hover { background: #002bcc; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
  .related-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav-left { display: none; }
  .nav-inner { grid-template-columns: 1fr auto 1fr; }
  .nav-wordmark { grid-column: 2; justify-self: center; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-drawer { width: 100%; }
  .cart-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 16px));
  }

  /* Footer — hide certain links on mobile */
  .footer-mobile-hide { display: none; }

  /* Footer — same height as header, single line */
  .site-footer { padding: 0 14px; }
  .footer-inner {
    height: 52px;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    overflow: hidden;
  }
  .footer-left { gap: 10px; }
  .footer-logo { font-size: 9px; gap: 4px; flex-shrink: 0; }
  .footer-logo svg { display: none; }
  .footer-links { flex-wrap: nowrap; gap: 9px; }
  .footer-links a { font-size: 7px; letter-spacing: 0.05em; }
  .footer-copy { font-size: 7px; white-space: nowrap; }
}
