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

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

:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #f8f7f5;
  --glass-white: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --metal-light: #c8c0bc;
  --metal-mid: #8a7e7c;
  --metal-dark: #3a3030;
  --glow-blue: rgba(180,220,255,0.5);
  --glow-green: rgba(160,255,200,0.4);
  --accent-cyan: #7de8f0;
  --accent-violet: #b89aff;
  --text-primary: rgba(213, 214, 221, 1);
  --text-dim: rgba(213,214,221,0.5);
  --nav-height: 52px;
  --banner-height: 36px;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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: #111; }
::-webkit-scrollbar-thumb { background: #3a3030; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5a5050; }

/* ── Announcement Banner ──────────────────────────────── */
.site-banner {
  width: 100%;
  height: var(--banner-height);
  background: linear-gradient(90deg, #0a0a0a 0%, #111010 50%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  z-index: 100;
}

.banner-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: bannerScroll 38s linear infinite;
  gap: 0;
}

.banner-track span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  padding: 0 48px;
}

.banner-track .banner-dot {
  color: var(--accent-cyan);
  opacity: 0.5;
  padding: 0;
  font-size: 8px;
}

@keyframes bannerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.nav-left { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-end; margin-right: 18px; }
.nav-center { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; }

.nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  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: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: rgba(255,255,255,0.95);
  border-bottom-color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(125,232,240,0.3);
}

.nav-link.sale-link { color: #f0c080; }
.nav-link.sale-link:hover { color: #ffd090; border-bottom-color: #f0c080; }

/* 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(255,255,255,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); }
.menu-btn::after {
  content: '';
  position: absolute;
  top: 6px; right: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5cf0a8;
  box-shadow: 0 0 6px rgba(92,240,168,0.5);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.menu-btn.wallet-active::after {
  opacity: 1;
  transform: scale(1);
}

/* 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(255,255,255,0.12);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.cart-btn:hover { border-color: var(--accent-cyan); background: rgba(125,232,240,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(--accent-cyan);
  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(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  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(--accent-cyan); color: var(--accent-cyan); background: rgba(125,232,240,0.05); }
.wallet-btn.connected { border-color: rgba(160,255,200,0.4); color: rgba(160,255,200,0.85); }

/* Receipt star 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;
  position: relative;
}
.receipt-icon-btn.visible { display: flex; }
.receipt-icon-btn:hover { transform: scale(1.2); }

/* ── Slide-out Menu Panel ─────────────────────────────── */
.menu-panel {
  position: fixed;
  top: 0; left: 0;
  width: 300px; height: 100vh;
  background: rgba(6,4,4,0.97);
  border-right: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  padding: 24px 0;
  backdrop-filter: blur(20px);
  overflow-y: auto;
}
.menu-panel.open { transform: translateX(0); }

.menu-panel-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: none; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%; color: rgba(255,255,255,0.5);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.menu-panel-close:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

.menu-panel-links {
  display: flex; flex-direction: column;
  padding: 48px 32px 24px;
  gap: 0;
}
.menu-panel-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
  cursor: pointer;
}
.menu-panel-link:hover { color: #fff; }

/* Wallet button inside slide menu (mobile only) */
.menu-wallet-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 32px 4px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(125,232,240,0.18);
  border-radius: 8px;
  color: rgba(125,232,240,0.8);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.menu-wallet-btn:hover { border-color: rgba(125,232,240,0.4); color: #7de8f0; background: rgba(125,232,240,0.06); }
.menu-wallet-btn.connected { border-color: rgba(160,255,200,0.3); color: rgba(160,255,200,0.8); }
.menu-wallet-btn .wallet-icon {
  width: 14px; height: 14px;
  opacity: 0.6;
}

.menu-panel-highlights {
  display: flex; flex-direction: column;
  padding: 24px 32px;
  gap: 10px;
}
.menu-panel-highlights-title {
  font-size: 9px; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
  margin-bottom: 4px;
}
.menu-img-btn {
  display: block;
  width: 100%; height: 80px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s;
}
.menu-img-btn:hover { border-color: rgba(255,255,255,0.22); }
.menu-img-btn span {
  position: absolute; bottom: 8px; left: 10px;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.menu-promo {
  margin: 12px 32px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  aspect-ratio: 2/3;
  display: flex; align-items: center; justify-content: center;
}
.menu-promo img { width: 100%; height: 100%; object-fit: cover; }
.menu-promo-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.15); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Menu overlay backdrop ────────────────────────────── */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.menu-overlay.visible { opacity: 1; pointer-events: all; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  width: 100%;
  background: #050404;
  border-top: 1px solid rgba(255,255,255,0.07);
  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(255,255,255,0.2); font-style: italic;
  text-align: center;
}

.footer-socials { display: flex; gap: 16px; align-items: center; }
.footer-social-icon {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}
.footer-social-icon:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.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.3);
}

.footer-email-form { display: flex; gap: 8px; align-items: center; }
.footer-email-form input {
  height: 34px; padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 17px;
  color: rgba(26, 255, 26, 1); font-family: var(--font); font-size: 12px;
  outline: none; width: 180px;
  transition: border-color 0.2s;
}
.footer-email-form input::placeholder { color: rgba(255,255,255,0.25); }
.footer-email-form input:focus { border-color: var(--accent-cyan); }
.footer-email-form button {
  height: 34px; padding: 0 16px;
  background: rgba(125,232,240,0.1);
  border: 1px solid rgba(125,232,240,0.3);
  border-radius: 17px;
  color: var(--accent-cyan); font-family: var(--font); font-size: 11px;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s;
}
.footer-email-form button:hover { background: rgba(125,232,240,0.18); }

.footer-chain-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px auto 10px;
  padding: 6px 18px;
  border: 1px solid rgba(125,232,240,0.12);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(125,232,240,0.04) 0%, rgba(180,160,255,0.04) 100%);
  width: fit-content;
  position: relative;
  overflow: hidden;
}
.chain-badge-glow {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  box-shadow: inset 0 0 14px rgba(125,232,240,0.1), 0 0 28px rgba(125,232,240,0.08), 0 0 60px rgba(125,232,240,0.04);
  pointer-events: none;
  animation: chainPulse 3s ease-in-out infinite alternate;
}
@keyframes chainPulse {
  0%   { box-shadow: inset 0 0 14px rgba(125,232,240,0.1), 0 0 28px rgba(125,232,240,0.08), 0 0 60px rgba(125,232,240,0.04); }
  100% { box-shadow: inset 0 0 20px rgba(125,232,240,0.15), 0 0 40px rgba(125,232,240,0.12), 0 0 80px rgba(125,232,240,0.07); }
}
.chain-badge-icon {
  flex-shrink: 0;
  opacity: 0.7;
  filter: drop-shadow(0 0 3px rgba(125,232,240,0.3));
}
.chain-badge-text {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.chain-badge-chains {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(125,232,240,0.55);
  font-weight: 500;
}
.chain-badge-sep {
  font-size: 10px;
  color: rgba(255,255,255,0.15);
}
.footer-chain-badge:hover {
  border-color: rgba(125,232,240,0.25);
  background: linear-gradient(135deg, rgba(125,232,240,0.07) 0%, rgba(180,160,255,0.07) 100%);
}
.footer-chain-badge:hover .chain-badge-chains {
  color: rgba(125,232,240,0.8);
}

.footer-bottom {
  font-size: 10px; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.15); text-transform: uppercase;
}

/* ── Modal / Overlay base ─────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  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: #0c0a0a;
  border: 1px solid rgba(255,255,255,0.1);
  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(255,255,255,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: rgba(255,255,255,0.4); color: #fff; }

.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: #fff; color: #000;
}
.btn-primary:hover { background: #e8f8ff; }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-cyan {
  background: rgba(125,232,240,0.1);
  border: 1px solid rgba(125,232,240,0.35);
  color: var(--accent-cyan);
}
.btn-cyan:hover { background: rgba(125,232,240,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); }

/* ── Wallet modal ─────────────────────────────────────── */
.wallet-status {
  font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 16px;
  letter-spacing: 0.08em; min-height: 20px;
}
.wallet-address {
  font-size: 11px; font-family: monospace;
  color: var(--accent-cyan); letter-spacing: 0.06em;
  background: rgba(125,232,240,0.06);
  border: 1px solid rgba(125,232,240,0.15);
  border-radius: 8px; padding: 8px 12px;
  margin-bottom: 16px; word-break: break-all;
  display: none;
}
.wallet-address.visible { display: block; }

/* ── 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(12,10,10,0.97);
  border: 1px solid rgba(255,255,255,0.12);
  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(160,255,200,0.3); color: rgba(160,255,200,0.9); }
.toast.error   { border-color: rgba(255,100,100,0.3); color: rgba(255,140,140,0.9); }
.toast.info    { border-color: rgba(125,232,240,0.3); color: var(--accent-cyan); }
@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) - var(--banner-height));
}

.store-left {
  flex: 0 0 58%;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: clamp(16px, 3vw, 28px);
  overflow-y: auto;
  background: #fff;
}

.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;
}
.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 (right side) ──────────────────── */
.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-desc a { color: var(--accent-cyan); text-decoration: underline; }

.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: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: none; border: 1px solid rgba(0,0,0,0.15);
  font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,0.5);
}

/* ── Cart page ────────────────────────────────────────── */
.cart-page { min-height: calc(100vh - var(--nav-height) - var(--banner-height)); }
.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: rgba(213,214,221,0.75); margin-bottom: 32px; font-weight: 400;
}
.cart-empty {
  text-align: center; padding: 80px 0;
  color: rgba(213,214,221,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(255,255,255,0.06);
}
.cart-item-img {
  width: 72px; height: 90px; object-fit: cover;
  border-radius: 6px; flex-shrink: 0; background: #222;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85); margin-bottom: 4px; }
.cart-item-meta { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.06em; }
.cart-item-price { font-size: 14px; color: rgba(255,255,255,0.7); font-weight: 300; }
.cart-item-remove {
  background: none; border: none; color: rgba(255,255,255,0.2);
  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(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  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: rgba(255,255,255,0.5);
}
.cart-summary-row.total {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 8px; padding-top: 16px;
  font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.85);
}
.cart-checkout-btn {
  width: 100%; height: 48px; margin-top: 20px;
  background: #fff; color: #000;
  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: #e8f8ff; }

/* Checkout flow steps */
.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(--accent-cyan); 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 (dark theme) ──────────────────────── */
.profile-page {
  min-height: calc(100vh - var(--nav-height) - var(--banner-height));
  padding: clamp(24px, 5vw, 48px) clamp(14px, 3vw, 24px);
  background: var(--black);
  color: rgba(213,214,221,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(255,255,255,0.06);
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.1);
  position: relative; cursor: pointer;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  transition: border-color 0.2s;
  /* no overflow:hidden, no color override — let emoji render natively */
}
.profile-avatar:hover { border-color: rgba(255,255,255,0.35); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-wallet-addr {
  font-family: monospace; font-size: 13px; color: rgba(213,214,221,0.45);
  letter-spacing: 0.06em; cursor: pointer; transition: color 0.2s;
}
.profile-wallet-addr:hover { color: var(--accent-cyan); }
.profile-wallet-addr.copied { color: var(--accent-cyan); }
.profile-section-title {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(213,214,221,0.4); margin-bottom: 16px; font-weight: 600;
}
.profile-section {
  margin-bottom: 0;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.profile-section:last-child { border-bottom: none; padding-bottom: 48px; }

.profile-page .btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: rgba(213,214,221,0.6);
}
.profile-page .btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(213,214,221,0.9);
}
.profile-page .btn-danger {
  background: rgba(220,50,50,0.08);
  border-color: rgba(220,50,50,0.25);
  color: rgba(220,80,80,0.85);
}
.profile-page .btn-danger:hover {
  background: rgba(220,50,50,0.15);
}

/* Profile avatar presets */
.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(255,255,255,0.08);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: rgba(255,255,255,0.03); transition: border-color 0.2s;
}
.avatar-preset:hover { border-color: rgba(255,255,255,0.3); }

/* Profile page table styling */
.profile-page table { width: 100%; border-collapse: collapse; font-size: 12px; }
.profile-page thead tr { border-bottom: 1px solid rgba(255,255,255,0.1); }
.profile-page thead th {
  padding: 8px 6px; font-weight: 600; letter-spacing: 0.1em;
  font-size: 10px; text-transform: uppercase; color: rgba(213,214,221,0.45);
  text-align: left;
}
.profile-page tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.15s; }
.profile-page tbody tr:hover { background: rgba(255,255,255,0.03); }
.profile-page tbody td { padding: 10px 6px; color: rgba(213,214,221,0.65); }
.profile-page tbody td:first-child { font-family: monospace; font-size: 11px; }

/* ── Receipt page (dark theme) ───────────────────────── */
.receipt-page { min-height: calc(100vh - var(--nav-height) - var(--banner-height)); padding: clamp(24px, 5vw, 48px) clamp(14px, 3vw, 24px); background: var(--black); color: var(--text-primary); }
.receipt-inner { max-width: 700px; margin: 0 auto; overflow: hidden; }

.receipt-page .order-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  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: 12px;
}
.receipt-page .order-id { font-size: 10px; letter-spacing: 0.2em; color: rgba(255,255,255,0.3); font-family: monospace; }
.receipt-page .order-date { font-size: 10px; color: rgba(255,255,255,0.25); }
.receipt-page .order-items-list { margin-bottom: 12px; }
.receipt-page .order-item-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.6);
  padding: 4px 0; letter-spacing: 0.04em;
}
.receipt-page .order-total { font-size: 13px; color: rgba(255,255,255,0.75); font-weight: 400; }
.receipt-page .order-personal { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.receipt-page .order-personal-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 4px;
}
.receipt-page .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;
}
.receipt-page .order-personal-item .delete-personal:hover { color: rgba(255,50,50,0.9); }
.receipt-page .btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
}
.receipt-page .btn-ghost:hover {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
}
.receipt-page .btn-danger {
  background: rgba(220,50,50,0.08);
  border-color: rgba(220,50,50,0.25);
  color: rgba(200,50,50,0.75);
}
.receipt-page .btn-danger:hover {
  background: rgba(220,50,50,0.15);
}

/* Order card defaults (profile white theme) */
.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); }

/* ── 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(255,255,255,0.3); margin-bottom: 32px;
}
.admin-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: clamp(16px, 3vw, 28px);
  margin-bottom: 32px;
}
.admin-form-title {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 20px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); display: block; margin-bottom: 6px;
}
.form-input, .form-textarea, .form-select {
  width: 100%; height: 38px; padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: rgba(255,255,255,0.8);
  font-family: var(--font); font-size: 12px; outline: none;
  transition: border-color 0.2s;
}
.form-textarea { height: 80px; padding: 10px 12px; resize: vertical; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent-cyan); }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.form-tags-hint { font-size: 10px; color: rgba(255,255,255,0.2); margin-top: 4px; }

.admin-item-list { display: flex; flex-direction: column; gap: 10px; }
.admin-item-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 12px 16px;
}
.admin-item-thumb {
  width: 44px; height: 55px; border-radius: 5px;
  object-fit: cover; background: #222; flex-shrink: 0;
}
.admin-item-info { flex: 1; }
.admin-item-name { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 2px; }
.admin-item-meta { font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; }
.admin-item-actions { display: flex; gap: 8px; }

/* ── Info/About page ──────────────────────────────────── */
.info-page { min-height: calc(100vh - var(--nav-height) - var(--banner-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: rgba(255,255,255,0.25); 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(--accent-cyan); }
.info-body {
  font-size: 13px; line-height: 1.9; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4); max-width: 540px; margin: 0 auto;
}
.info-divider {
  width: 40px; height: 1px; background: rgba(255,255,255,0.1);
  margin: 40px auto;
}
.info-pillars {
  display: flex; gap: 0; justify-content: center;
  flex-wrap: wrap; margin-top: clamp(24px, 5vw, 48px);
}
.info-pillar {
  flex: 1; min-width: 180px; padding: clamp(20px, 3vw, 32px) clamp(14px, 2.5vw, 24px);
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.info-pillar:last-child { border-right: none; }
.info-pillar-icon { font-size: 28px; margin-bottom: 12px; }
.info-pillar-title {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 8px;
}
.info-pillar-text { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.3); }

/* ── Responsive ───────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1200px) {
  .nav-inner { padding: 0 20px; padding-right: 40px; }
}

@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.07); }
  .store-right { display: none; }
  .nav-inner { padding: 0 16px; padding-right: 32px; }
  .nav-center .nav-link { padding: 0 12px; }
}

/* Tablet portrait + mobile */
@media (max-width: 768px) {
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .store-left { padding: 18px; }
  .nav-inner { padding: 0 16px; padding-right: 16px; }
  .nav-center .nav-link { padding: 0 10px; font-size: 11px; }
  .nav-left { justify-content: flex-start; margin-right: 0; flex: 0 0 auto; }
  .nav-right { flex: 0 0 auto; }
  .wallet-btn { display: none; }
  .menu-wallet-btn { display: flex; }
  .info-pillars { flex-direction: column; }
  .info-pillar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .site-footer { padding: 36px 24px 28px; gap: 24px; }
  .footer-inner { flex-direction: column; align-items: center; gap: 28px; text-align: center; }
  .footer-socials { justify-content: center; }
  .footer-contact { align-items: center; }
  .footer-email-form { justify-content: center; }
  .cart-inner { max-width: 100%; }
  .cart-summary { padding: clamp(14px, 3vw, 24px); }
  .profile-inner { max-width: 100%; }
  .profile-header { gap: 14px; }
  .profile-avatar { width: 48px; height: 48px; font-size: 22px; }
  .receipt-inner { max-width: 100%; }
  .admin-page { max-width: 100%; }
  .form-row { flex-direction: column; gap: 0; }
  .admin-item-row { flex-wrap: wrap; padding: 10px 12px; gap: 10px; }
  .admin-item-actions { width: 100%; justify-content: flex-end; }
}

/* Small mobile */
@media (max-width: 480px) {
  .nav-inner { padding: 0 10px; }
  .nav-left { justify-content: flex-start; margin-right: 0; }
  .nav-center { gap: 0; }
  .nav-link { padding: 0 6px; font-size: 10px; letter-spacing: 0.1em; }
  .cart-btn { width: 34px; height: 34px; }
  .site-footer { padding: 28px 16px 24px; gap: 20px; }
  .footer-email-form { flex-direction: column; }
  .footer-email-form input { width: 100%; min-width: 200px; }
  .footer-chain-badge { padding: 5px 12px; }
  .chain-badge-text { font-size: 8px; }
  .chain-badge-chains { font-size: 9px; }
  .store-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cart-item { gap: 10px; }
  .cart-item-img { width: 56px; height: 70px; }
  .cart-page-title { font-size: 14px; letter-spacing: 0.2em; margin-bottom: 20px; }
  .cart-summary-row.total { font-size: 14px; }
  .profile-page table { font-size: 11px; }
  .profile-page thead th { font-size: 9px; padding: 8px 4px; }
  .profile-page tbody td { padding: 8px 4px; font-size: 11px; }
  .receipt-page .order-item-row { font-size: 11px; }
  .receipt-page .order-total { font-size: 12px; }
  .admin-item-row { padding: 8px 10px; }
  .admin-item-thumb { width: 36px; height: 44px; }
  .admin-item-name { font-size: 12px; }
  .admin-item-meta { font-size: 10px; }
  .info-body { font-size: 12px; }
}