@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&display=swap');

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

:root {
  --black: #000000;
  --white: #ffffff;
  --green: #02ff85;
  --green-dim: rgba(2,255,133,0.5);
  --green-glow: rgba(2,255,133,0.3);
  --terminal-bg: #5b6c89;
  --terminal-text: #1fff93;
  --tab-color: #9ca7c9;
  --glass-border: rgba(2,255,133,0.12);
  --text-primary: rgba(255,255,255,0.9);
  --text-dim: rgba(255,255,255,0.5);
  --nav-height: 52px;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-terminal: 'Anonymous Pro', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text-primary);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(2,255,133,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(2,255,133,0.45); }

/* ── Navigation ───────────────────────────────────────── */
.site-nav {
  width: 100%;
  height: var(--nav-height);
  background: #000;
  border-bottom: 1px solid rgba(144,179,252,0.08);
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  overflow: visible;
}
.nav-inner {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  gap: 0;
  overflow: visible;
}

.nav-center {
  display: flex; align-items: center; gap: 0;
  position: absolute; left: 50%; transform: translateX(-50%);
  height: 100%;
  z-index: 10;
  /* Offset so the LOGO is the visual center, not the whole group.
     Hamburger(40) + New(~66) + AllItems(~106) sit left of logo = ~212px,
     only Sale(~86) sits right. Shift left by half the imbalance (~63px). */
  margin-left: -60px;
}
.nav-center .nav-link,
.nav-center .nav-logo-link,
.nav-center .menu-btn {
  position: relative;
  z-index: 2;
}
.nav-right { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; position: relative; z-index: 5; pointer-events: none; }
.nav-right > * { pointer-events: auto; }

/* Header logo — centered clickable link */
.nav-logo {
  height: 28px;
  width: auto;
  display: block;
  cursor: pointer;
  transition: filter 0.3s, transform 0.2s;
  filter: drop-shadow(0 0 4px rgba(2,255,133,0.15));
}
.nav-logo:hover {
  filter: drop-shadow(0 0 10px rgba(2,255,133,0.4)) drop-shadow(0 0 20px rgba(2,255,133,0.2));
  transform: scale(1.02);
}
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0 20px;
  height: var(--nav-height);
}

/* Neon flicker animation for nav hovers */
@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.85; }
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 0 18px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: none;
  transition: color 0.2s, text-shadow 0.25s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  white-space: nowrap;
  position: relative;
}
/* Periwinkle neon underline — scales in from center on hover */
.nav-link::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: 0;
  height: 2px;
  background: #88AAFC;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
  box-shadow: none;
}
.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  box-shadow:
    0 0 4px #88AAFC,
    0 0 10px #88AAFC,
    0 0 22px #88AAFC,
    0 0 40px rgba(136,170,252,0.7),
    0 0 70px rgba(136,170,252,0.4);
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  animation: neonFlicker 1.8s ease-in-out 1;
  text-shadow:
    0 0 2px #fff,
    0 0 6px #fff,
    0 0 12px #fff,
    0 0 22px #B0C8FF,
    0 0 40px #88AAFC,
    0 0 70px rgba(136,170,252,0.6),
    0 0 110px rgba(136,170,252,0.3);
}

/* Sale link — amber neon treatment */
.nav-link.sale-link { color: rgba(255,255,255,0.55); }
/* Home link — hidden on mobile */
.nav-link.home-link { color: rgba(255,255,255,0.55); }
.nav-link.sale-link:hover {
  color: #FFD580;
  animation: neonFlicker 1.8s ease-in-out 1;
  text-shadow:
    0 0 2px #fff,
    0 0 6px #FFE8A0,
    0 0 12px #FAA32D,
    0 0 22px #FAA32D,
    0 0 40px #FAA32D,
    0 0 70px rgba(250,163,45,0.6),
    0 0 110px rgba(250,163,45,0.3);
}
.nav-link.sale-link:hover::after {
  box-shadow:
    0 0 4px #FAA32D,
    0 0 10px #FAA32D,
    0 0 22px #FAA32D,
    0 0 40px rgba(250,163,45,0.7),
    0 0 70px rgba(250,163,45,0.4);
  background: #FAA32D;
}

/* Menu icon button */
.menu-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; cursor: pointer; background: none;
  border: none; padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
}
.menu-btn:hover { background: rgba(2,255,133,0.06); }
.menu-btn span {
  display: block; width: 18px; height: 1.5px;
  background: rgba(255,255,255,0.6);
  transition: background 0.2s;
}
.menu-btn:hover span { background: rgba(255,255,255,0.9); }

/* Cart icon */
.cart-btn {
  position: relative;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: none;
  border: 1px solid rgba(2,255,133,0.18);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.cart-btn:hover { border-color: var(--green); background: rgba(2,255,133,0.06); }
.cart-btn svg { width: 16px; height: 16px; fill: none; stroke: rgba(255,255,255,0.7); stroke-width: 1.5; }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--green);
  color: #000; font-size: 9px; font-weight: 600;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-count.visible { display: flex; }

/* Wallet button */
.wallet-btn {
  height: 32px;
  padding: 0 14px;
  background: rgba(2,255,133,0.04);
  border: 1px solid rgba(2,255,133,0.18);
  border-radius: 16px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.wallet-btn:hover { border-color: var(--green); color: var(--green); background: rgba(2,255,133,0.08); }
.wallet-btn.connected { border-color: rgba(2,255,133,0.4); color: rgba(2,255,133,0.85); }

/* Connection status indicator */
.conn-status {
  display: none;
  align-items: stretch;
  height: 28px;
  border-radius: 14px;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--font);
  border: 1px solid rgba(2,255,133,0.18);
}
.conn-status.visible { display: flex; }
.conn-status.visible ~ .wallet-btn { display: none; }
.conn-seg-network {
  display: flex; align-items: center; gap: 4px;
  padding: 0 9px 0 7px;
  background: rgba(255,255,255,0.05);
}
.conn-seg-network .conn-chain-emoji { font-size: 11px; line-height: 1; }
.conn-seg-network .conn-chain-name {
  font-size: 8px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.conn-seg-wallet {
  display: flex; align-items: center; gap: 4px;
  padding: 0 9px 0 7px;
  background: rgba(255,255,255,0.02);
  border-left: 1px solid rgba(255,255,255,0.06);
}
.conn-seg-wallet .conn-method-icon { font-size: 11px; line-height: 1; }
.conn-seg-wallet .conn-method-label {
  font-size: 7px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.conn-status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(2,255,133,0.6);
  animation: connPulse 2s ease-in-out infinite;
  flex-shrink: 0; margin-left: 7px;
}
@keyframes connPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(2,255,133,0.4); }
  50% { box-shadow: 0 0 10px rgba(2,255,133,0.8); }
}

/* ── Dropdown wallet connection status ─────────────────── */
.menu-wallet-status {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 24px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(2,255,133,0.1);
  cursor: pointer;
  transition: background 0.2s;
}
.menu-wallet-status:hover { background: rgba(2,255,133,0.04); }
.menu-wallet-status.visible { display: flex; }
.menu-wallet-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--green);
  box-shadow: 0 0 6px rgba(2,255,133,0.6);
  animation: connPulse 2s ease-in-out infinite;
}
.menu-wallet-emoji { font-size: 12px; line-height: 1; }
.menu-wallet-chain {
  font-size: 9px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.menu-wallet-sep {
  font-size: 10px; color: rgba(255,255,255,0.15);
}
.menu-wallet-method {
  font-size: 8px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.menu-wallet-addr {
  font-size: 8px; font-weight: 400; letter-spacing: 0.06em;
  color: rgba(2,255,133,0.45); margin-left: auto;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* Receipt pager icon */
.receipt-icon-btn {
  display: none;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  background: none; border: none;
  cursor: pointer; font-size: 16px;
  transition: transform 0.2s;
  filter: drop-shadow(0 0 4px rgba(2,255,133,0.35));
}
.receipt-icon-btn.visible { display: flex; animation: pagerPulse 3.5s ease-in-out infinite; }
.receipt-icon-btn:hover { transform: scale(1.2); filter: drop-shadow(0 0 7px rgba(2,255,133,0.6)); }
@keyframes pagerPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(2,255,133,0.35)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 7px rgba(2,255,133,0.55)); transform: scale(1.04); }
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  width: 100%;
  background: #080808;
  border-top: 1px solid rgba(2,255,133,0.08);
  padding: 48px 48px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  margin-top: auto;
}
.footer-inner {
  width: 100%; max-width: 900px;
  display: flex; gap: 48px;
  justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
}
.footer-slogan {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(2,255,133,0.35); font-style: italic; text-align: center;
}
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact span { font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); }
.footer-email-form { display: flex; gap: 8px; align-items: center; }
.footer-email-form input {
  height: 36px; padding: 0 16px;
  background: rgba(144,179,252,0.04);
  border: 1.5px solid rgba(144,179,252,0.35);
  border-radius: 20px;
  color: var(--green); font-family: var(--font-terminal); font-size: 12px;
  outline: none; width: 200px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.footer-email-form input::placeholder { color: rgba(2,255,133,0.3); }
.footer-email-form input:focus {
  border-color: rgba(144,179,252,0.7);
  box-shadow: 0 0 10px rgba(144,179,252,0.25), 0 0 30px rgba(144,179,252,0.1);
}
.footer-email-form button {
  height: 36px; padding: 0 18px;
  background: rgba(144,179,252,0.06);
  border: 1.5px solid rgba(144,179,252,0.35);
  border-radius: 20px;
  color: #D0DFFF; font-family: var(--font); font-size: 11px;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all 0.25s;
}
.footer-email-form button:hover {
  background: rgba(144,179,252,0.15);
  border-color: rgba(144,179,252,0.6);
  box-shadow: 0 0 12px rgba(144,179,252,0.3), 0 0 30px rgba(144,179,252,0.12);
  color: #fff;
}
.footer-email-form button:active { transform: scale(0.96); }

.footer-chain-badge {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 14px auto 10px; padding: 6px 18px;
  border: 1px solid rgba(144,179,252,0.2);
  border-radius: 20px;
  background: rgba(200,195,220,0.06);
  width: fit-content; position: relative; overflow: hidden;
}
.chain-badge-glow {
  position: absolute; inset: -2px; border-radius: 22px;
  box-shadow: inset 0 0 18px rgba(144,179,252,0.12), 0 0 28px rgba(144,179,252,0.08);
  pointer-events: none;
  animation: chainPulse 6s ease-in-out infinite alternate;
}
@keyframes chainPulse {
  0%   { box-shadow: inset 0 0 18px rgba(144,179,252,0.12), 0 0 28px rgba(144,179,252,0.08); }
  100% { box-shadow: inset 0 0 26px rgba(144,179,252,0.22), 0 0 40px rgba(144,179,252,0.15); }
}
.chain-badge-icon { flex-shrink: 0; opacity: 0.8; }
.chain-badge-text { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(180,180,200,0.6); }
.chain-badge-chains { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #D0DFFF; font-weight: 600; text-shadow: 0 0 8px rgba(144,179,252,0.4); }
.chain-badge-sep { font-size: 10px; color: rgba(180,180,200,0.35); }
.footer-bottom { font-size: 10px; letter-spacing: 0.15em; color: rgba(255,255,255,0.2); text-transform: uppercase; text-align: center; }

/* ── Modal / Overlay ──────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 800;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: #0a0a0a;
  border: 1px solid rgba(2,255,133,0.12);
  border-radius: 16px;
  padding: clamp(18px, 4vw, 32px);
  width: 90%; max-width: 440px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: none; border: 1px solid rgba(2,255,133,0.12);
  color: rgba(255,255,255,0.4); font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--green); color: var(--green); }
.modal-title {
  font-size: 13px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 20px;
  color: rgba(255,255,255,0.8);
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px;
  border-radius: 20px;
  font-family: var(--font); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  border: none; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { background: #00e876; box-shadow: 0 0 16px rgba(2,255,133,0.3); }
.btn-ghost {
  background: rgba(2,255,133,0.04);
  border: 1px solid rgba(2,255,133,0.18);
  color: rgba(255,255,255,0.7);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-cyan {
  background: rgba(2,255,133,0.1);
  border: 1px solid rgba(2,255,133,0.35);
  color: var(--green);
}
.btn-cyan:hover { background: rgba(2,255,133,0.2); }
.btn-danger {
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.25);
  color: rgba(255,120,120,0.9);
}
.btn-danger:hover { background: rgba(255,80,80,0.16); }

/* ── Toast notifications ──────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 12px 18px;
  background: rgba(0,0,0,0.97);
  border: 1px solid rgba(2,255,133,0.15);
  border-radius: 10px;
  font-size: 12px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  animation: toastIn 0.3s ease;
  pointer-events: none; max-width: 300px;
}
.toast.success { border-color: rgba(2,255,133,0.35); color: rgba(2,255,133,0.9); }
.toast.error   { border-color: rgba(255,100,100,0.3); color: rgba(255,140,140,0.9); }
.toast.info    { border-color: rgba(2,255,133,0.25); color: rgba(2,255,133,0.8); }
@keyframes toastIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ── Store page layout ────────────────────────────────── */
.store-layout { display: flex; width: 100%; min-height: calc(100vh - var(--nav-height)); }
.store-left {
  flex: 0 0 58%;
  border-right: 1px solid rgba(0,0,0,0.07);
  padding: clamp(16px, 3vw, 28px);
  overflow-y: auto;
  background: #ffffff;
}
.store-right {
  flex: 1;
  position: sticky;
  top: calc(var(--nav-height));
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  padding: clamp(18px, 3vw, 32px);
  background: #fdfdfd;
  display: flex; align-items: flex-start; justify-content: center;
}
.store-right-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 12px; color: rgba(0,0,0,0.18);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.store-right-empty .empty-icon { font-size: 32px; opacity: 0.3; }

/* Store header + sort */
.store-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.store-title {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(0,0,0,0.35); font-weight: 500;
}
.store-count { font-size: 11px; color: rgba(0,0,0,0.25); letter-spacing: 0.08em; }
.sort-select {
  height: 32px; padding: 0 28px 0 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  font-family: var(--font); font-size: 11px;
  letter-spacing: 0.08em; color: rgba(0,0,0,0.6);
  cursor: pointer; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Item grid */
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.5vw, 14px);
}
.item-card {
  cursor: pointer; border-radius: 10px; overflow: hidden;
  border: 1.5px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8f7f6; position: relative;
}
.item-card:hover { border-color: rgba(0,0,0,0.15); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.item-card.selected { border-color: #000; }
.item-card-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #eee; }
.item-card-img-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(135deg, #e8e4e0, #d8d4d0);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: rgba(0,0,0,0.1);
}
.item-card-info { padding: 8px 10px 10px; }
.item-card-name {
  font-size: 11px; font-weight: 500; color: #1a1a1a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.04em;
}
.item-card-price {
  font-size: 11px; color: rgba(0,0,0,0.45); margin-top: 2px;
  letter-spacing: 0.06em;
}

/* Sold Out badge */
.item-card.sold-out { opacity: 0.72; pointer-events: auto; }
.item-card.sold-out:hover { border-color: rgba(0,0,0,0.08); box-shadow: none; }
.item-card.sold-out .item-card-img,
.item-card.sold-out .item-card-img-placeholder { filter: grayscale(0.6); }
.sold-out-badge {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; pointer-events: none;
}
.sold-out-badge span {
  background: rgba(0,0,0,0.72); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px;
}
.item-card-tag {
  position: absolute; top: 8px; left: 8px;
  height: 18px; padding: 0 7px; border-radius: 9px;
  font-size: 9px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  display: flex; align-items: center;
}
.tag-sale { background: #fff8e6; color: #b07010; border: 1px solid #e8c870; }
.tag-top  { background: #f0f0ff; color: #5050a0; border: 1px solid #c0c0f0; }
.tag-new  { background: #f0fff4; color: #206040; border: 1px solid #a0d8b0; }

/* Pagination */
.store-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 32px 0 8px;
}
.page-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: none; border: 1px solid rgba(0,0,0,0.12);
  font-size: 12px; color: rgba(0,0,0,0.5); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-family: var(--font);
}
.page-btn:hover { border-color: #000; color: #000; }
.page-btn.active { background: #000; color: #fff; border-color: #000; }

/* ── Item Detail Panel ──────────────────────────────────── */
.item-detail { width: 100%; max-width: 380px; }
.item-detail-main-img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px;
  display: block; background: #eee; margin-bottom: 12px;
}
.item-detail-main-placeholder {
  width: 100%; aspect-ratio: 4/5;
  background: linear-gradient(135deg, #e8e4e0, #d0ccc8);
  border-radius: 12px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: rgba(0,0,0,0.1);
}
.item-detail-thumbs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; }
.item-thumb {
  width: 60px; height: 75px; flex-shrink: 0;
  border-radius: 6px; object-fit: cover; cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.2s;
  background: #eee;
}
.item-thumb.active, .item-thumb:hover { border-color: #000; }
.item-detail-name {
  font-size: 16px; font-weight: 500; color: #0a0a0a;
  letter-spacing: 0.02em; margin-bottom: 6px;
}
.item-detail-price {
  font-size: 20px; font-weight: 300; color: #1a1a1a;
  letter-spacing: 0.04em; margin-bottom: 4px;
}
.item-detail-price .original-price {
  font-size: 14px; color: #aaa; text-decoration: line-through; margin-left: 8px;
}
.item-detail-desc {
  font-size: 12px; line-height: 1.7; color: rgba(0,0,0,0.55);
  letter-spacing: 0.03em; margin-bottom: 16px;
}
.item-detail-desc b, .item-detail-desc strong { font-weight: 600; color: rgba(0,0,0,0.7); }
.item-detail-desc i, .item-detail-desc em { font-style: italic; }
.item-detail-desc br { display: block; margin: 4px 0; }
.item-detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.item-tag {
  height: 22px; padding: 0 10px; border-radius: 11px;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(0,0,0,0.45); border: 1px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; font-weight: 500;
}
.item-detail-size { margin-bottom: 20px; }
.item-detail-size-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(0,0,0,0.35); margin-bottom: 8px; font-weight: 500;
}
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
  min-width: 40px; height: 36px; padding: 0 10px;
  border: 1px solid rgba(0,0,0,0.15); border-radius: 6px;
  background: #fff; font-family: var(--font); font-size: 11px;
  font-weight: 500; color: rgba(0,0,0,0.6); cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.06em;
}
.size-btn:hover { border-color: #000; color: #000; }
.size-btn.selected { background: #000; color: #fff; border-color: #000; }
.item-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.add-to-cart-btn {
  flex: 1; min-width: 140px; height: 44px;
  background: #000; color: #fff;
  border: none; border-radius: 22px;
  font-family: var(--font); font-size: 11px;
  font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.add-to-cart-btn:hover { background: #1a1a1a; }
.add-to-cart-btn:disabled { background: #ccc; cursor: not-allowed; }

/* Mobile item detail overlay */
.item-detail-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.98);
  z-index: 500; overflow-y: auto; padding: 24px;
}
.item-detail-overlay.open { display: block; }
.item-detail-overlay-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.06); border: 1.5px solid rgba(0,0,0,0.25);
  font-size: 24px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,0.7);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 10;
}
.item-detail-overlay-close:hover,
.item-detail-overlay-close:active {
  background: rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.9);
  border-color: rgba(0,0,0,0.35);
}

/* ── Cart page ────────────────────────────────────────── */
.cart-page { min-height: calc(100vh - var(--nav-height)); background: #ffffff; }
.cart-inner { max-width: 640px; margin: 0 auto; padding: clamp(24px, 5vw, 48px) clamp(14px, 3vw, 24px); }
.cart-page-title {
  font-size: 16px; letter-spacing: 0.25em; text-transform: uppercase;
  color: #5B6C89; margin-bottom: 32px; font-weight: 400;
}
.cart-empty {
  text-align: center; padding: 80px 0;
  color: rgba(91,108,137,0.5); font-size: 14px; letter-spacing: 0.15em;
  text-transform: uppercase;
}
.cart-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid rgba(91,108,137,0.12);
}
.cart-item-img {
  width: 72px; height: 90px; object-fit: cover;
  border-radius: 6px; flex-shrink: 0; background: #eef1f5;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 500; color: #3b4a60; margin-bottom: 4px; }
.cart-item-meta { font-size: 11px; color: rgba(91,108,137,0.6); letter-spacing: 0.06em; }
.cart-item-price { font-size: 14px; color: #5B6C89; font-weight: 300; }
.cart-item-remove {
  background: none; border: none; color: rgba(91,108,137,0.35);
  font-size: 18px; cursor: pointer; padding: 0 4px; transition: color 0.2s;
}
.cart-item-remove:hover { color: rgba(255,100,100,0.7); }
.cart-summary {
  margin-top: 32px; padding: 24px;
  background: rgba(91,108,137,0.04);
  border: 1px solid rgba(91,108,137,0.12);
  border-radius: 12px;
}
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 12px; letter-spacing: 0.08em; color: #5B6C89;
}
.cart-summary-row.total {
  border-top: 1px solid rgba(91,108,137,0.15); margin-top: 8px; padding-top: 16px;
  font-size: 16px; font-weight: 300; color: #3b4a60;
}
.cart-checkout-btn {
  width: 100%; height: 48px; margin-top: 20px;
  background: #3b4a60; color: #fff;
  border: none; border-radius: 24px;
  font-family: var(--font); font-size: 12px;
  font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s;
}
.cart-checkout-btn:hover { background: #5B6C89; }

/* Checkout flow */
.checkout-step {
  padding: 16px 0; font-size: 12px; color: rgba(255,255,255,0.5); letter-spacing: 0.06em;
}
.checkout-step strong { color: rgba(255,255,255,0.85); display: block; margin-bottom: 4px; font-size: 13px; }
.tx-hash {
  font-family: monospace; font-size: 10px;
  color: var(--green); word-break: break-all; overflow-wrap: anywhere;
  background: rgba(125,232,240,0.05); border: 1px solid rgba(125,232,240,0.12);
  border-radius: 6px; padding: 6px 10px; margin-top: 6px; max-width: 100%; overflow: hidden;
}

/* ── Profile page ───────────────────────────────────────── */
.profile-page {
  min-height: calc(100vh - var(--nav-height));
  padding: clamp(24px, 5vw, 48px) clamp(14px, 3vw, 24px);
  background: #F8F8FA; color: rgba(28,28,32,0.85);
}
.profile-inner { max-width: 700px; margin: 0 auto; }
.profile-header {
  display: flex; align-items: center; gap: 20px;
  padding-bottom: 36px; margin-bottom: 0;
  border-bottom: 1px solid rgba(28,28,32,0.1);
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid rgba(28,28,32,0.15);
  position: relative; cursor: pointer;
  background: rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; transition: border-color 0.2s;
}
.profile-avatar:hover { border-color: rgba(28,28,32,0.4); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-wallet-addr {
  font-family: monospace; font-size: 13px; color: rgba(100,115,180,0.85);
  letter-spacing: 0.06em; cursor: pointer; transition: color 0.2s;
}
.profile-wallet-addr:hover { color: #58e1b5; }
.profile-wallet-addr.copied { color: #58e1b5; }
.profile-section-title {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(28,28,32,0.65); margin-bottom: 16px; font-weight: 600;
}
.profile-section {
  margin-bottom: 0; padding: 36px 0;
  border-bottom: 1px solid rgba(28,28,32,0.1);
}
.profile-section:last-child { border-bottom: none; padding-bottom: 48px; }
.profile-page .btn-ghost {
  background: rgba(255,255,255,0.35);
  border-color: rgba(28,28,32,0.15);
  color: rgba(28,28,32,0.65);
}
.profile-page .btn-ghost:hover { border-color: rgba(28,28,32,0.35); color: rgba(28,28,32,0.9); }
.profile-page .btn-danger {
  background: rgba(220,50,50,0.08);
  border-color: rgba(220,50,50,0.3);
  color: rgba(200,40,40,0.85);
}
.profile-page .btn-danger:hover { background: rgba(220,50,50,0.15); }
.avatar-presets { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.avatar-preset {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(28,28,32,0.12);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: rgba(255,255,255,0.4); transition: border-color 0.2s;
}
.avatar-preset:hover { border-color: rgba(28,28,32,0.35); }
.profile-page table { width: 100%; border-collapse: collapse; font-size: 12px; }
.profile-page thead tr { border-bottom: 1px solid rgba(28,28,32,0.12); }
.profile-page thead th {
  padding: 8px 6px; font-weight: 600; letter-spacing: 0.1em;
  font-size: 10px; text-transform: uppercase; color: rgba(28,28,32,0.45); text-align: left;
}
.profile-page tbody tr { border-bottom: 1px solid rgba(28,28,32,0.06); transition: background 0.15s; }
.profile-page tbody tr:hover { background: rgba(255,255,255,0.3); }
.profile-page tbody td { padding: 10px 6px; color: rgba(28,28,32,0.65); }
.profile-page tbody td:first-child { font-family: monospace; font-size: 11px; }

/* ── Receipt page ───────────────────────────────────────── */
.receipt-page { min-height: calc(100vh - var(--nav-height)); padding: clamp(24px, 5vw, 48px) clamp(14px, 3vw, 24px); background: #F8F8FA; color: #000; }
.receipt-inner { max-width: 700px; margin: 0 auto; overflow: hidden; }
.receipt-page .order-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
  border-radius: 12px; padding: clamp(12px, 2.5vw, 20px); margin-bottom: 16px;
  max-width: 100%; overflow: hidden; box-sizing: border-box;
}
.receipt-page .order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.receipt-page .order-id { font-size: 18px; letter-spacing: 0.2em; color: #000; font-family: monospace; font-weight: 700; }
.receipt-page .order-date { font-size: 15px; color: #5B6C89; font-weight: 500; }
.receipt-page .order-items-list { margin-bottom: 14px; }
.receipt-page .order-item-row { display: flex; justify-content: space-between; font-size: 18px; color: #5B6C89; padding: 5px 0; letter-spacing: 0.04em; }
.receipt-page .order-total { font-size: 19px; color: #000; font-weight: 700; }
.receipt-page .order-personal { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(28,28,32,0.12); }
.receipt-page .order-personal-item { display: flex; align-items: center; gap: 8px; font-size: 16px; color: #5B6C89; margin-bottom: 6px; }
.receipt-page .order-personal-item .delete-personal {
  background: none; border: none; color: rgba(220,50,50,0.75);
  font-size: 16px; cursor: pointer; padding: 0 4px; transition: color 0.2s; line-height: 1;
}
.receipt-page .order-personal-item .delete-personal:hover { color: rgba(200,40,40,0.95); }
.receipt-page .btn-ghost { background: rgba(255,255,255,0.35); border-color: rgba(28,28,32,0.2); color: #5B6C89; font-size: 13px; }
.receipt-page .btn-ghost:hover { border-color: rgba(28,28,32,0.4); color: #000; }
.receipt-page .btn-danger { background: rgba(220,50,50,0.08); border-color: rgba(220,50,50,0.35); color: rgba(200,40,40,0.9); font-size: 13px; }
.receipt-page .btn-danger:hover { background: rgba(220,50,50,0.18); }
.receipt-page .tx-hash { color: var(--green); background: rgba(2,255,133,0.06); border-color: rgba(2,255,133,0.18); font-size: 13px; padding: 8px; border-radius: 6px; }
.receipt-page .tx-hash a { color: var(--green) !important; font-size: 13px; }

/* Order card defaults */
.order-card {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 12px;
}
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-id { font-size: 10px; letter-spacing: 0.2em; color: rgba(0,0,0,0.35); font-family: monospace; }
.order-date { font-size: 10px; color: rgba(0,0,0,0.3); }
.order-items-list { margin-bottom: 12px; }
.order-item-row { display: flex; justify-content: space-between; font-size: 12px; color: rgba(0,0,0,0.55); padding: 4px 0; letter-spacing: 0.04em; }
.order-total { font-size: 13px; color: rgba(0,0,0,0.7); font-weight: 400; }
.order-personal { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.06); }
.order-personal-item { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(0,0,0,0.45); margin-bottom: 4px; }
.order-personal-item .delete-personal {
  background: none; border: none; color: rgba(255,80,80,0.6);
  font-size: 12px; cursor: pointer; padding: 0 4px; transition: color 0.2s; line-height: 1;
}
.order-personal-item .delete-personal:hover { color: rgba(255,50,50,0.9); }

/* ── Info/About page ──────────────────────────────────── */
.info-page { min-height: calc(100vh - var(--nav-height)); }
.info-hero {
  padding: clamp(40px, 8vw, 80px) clamp(18px, 5vw, 48px) clamp(30px, 6vw, 60px);
  max-width: 760px; margin: 0 auto; text-align: center;
}
.info-tagline {
  font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--green-dim); margin-bottom: 24px;
}
.info-headline {
  font-size: clamp(24px, 4vw, 40px); font-weight: 300;
  line-height: 1.4; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85); margin-bottom: 28px;
}
.info-headline em { font-style: italic; color: var(--green); }
.info-body {
  font-size: 13px; line-height: 1.9; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5); max-width: 540px; margin: 0 auto;
}
.info-divider { width: 40px; height: 1px; background: rgba(2,255,133,0.15); margin: 40px auto; }

/* ── Admin page ───────────────────────────────────────── */
.admin-page { min-height: 100vh; padding: clamp(20px, 4vw, 40px) clamp(14px, 3vw, 32px); max-width: 900px; margin: 0 auto; }
.admin-title {
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(2,255,133,0.3); margin-bottom: 32px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .store-layout { flex-direction: column; }
  .store-left { flex: none; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .store-right { display: none; }
}
@media (max-width: 768px) {
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .store-left { padding: 18px; }
  .nav-inner { padding: 0 16px; }
  /* On mobile, un-center nav and let it flow naturally from the left */
  .nav-center {
    position: static; left: auto; transform: none;
    margin-left: 0;
  }
  .nav-center .nav-link { padding: 0 8px; font-size: 10px; letter-spacing: 0.1em; }
  .nav-center .nav-link::after { left: 8px; right: 8px; }
  .nav-right { gap: 8px; }
  .nav-link.home-link { display: none; }
  .wallet-btn { display: none; }
  .conn-status.visible { display: flex !important; }
  .conn-status { height: 24px; border-radius: 12px; }
  .conn-seg-wallet { display: none; }
  .conn-seg-network { padding: 0 7px 0 5px; }
  .conn-seg-network .conn-chain-name { font-size: 7px; }
  .conn-status-dot { margin-left: 5px; width: 4px; height: 4px; }
  .site-footer { padding: 36px 24px 28px; gap: 24px; }
  .footer-inner { flex-direction: column; align-items: center; gap: 28px; text-align: center; }
  .footer-email-form { justify-content: center; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 0 10px; }
  .nav-center .nav-link { padding: 0 5px; font-size: 9px; letter-spacing: 0.06em; }
  .nav-center .nav-link::after { left: 5px; right: 5px; }
  .nav-logo { height: 22px; }
  .nav-logo-link { padding: 0 10px; }
  .nav-right { gap: 6px; }
  .cart-btn { width: 32px; height: 32px; }
  /* Ultra-compact pill: just dot + emoji at very small screens */
  .conn-status { height: 22px; border-radius: 11px; }
  .conn-seg-network { padding: 0 5px 0 3px; }
  .conn-seg-network .conn-chain-name { display: none; }
  .conn-seg-network .conn-chain-emoji { font-size: 10px; }
  .conn-status-dot { margin-left: 4px; }
  .site-footer { padding: 28px 16px 24px; gap: 20px; }
  .footer-email-form { flex-direction: column; }
  .footer-email-form input { width: 100%; min-width: 200px; }
  .store-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
