@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;
  --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; }

/* ── Navigation ───────────────────────────────────────── */
.site-nav {
  width: 100%;
  height: var(--nav-height);
  background: rgb(144, 145, 149);
  border-bottom: none;
  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-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: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28,28,32,0.7);
  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: 'Oswald', 'Alternate Gothic No3 D', var(--font);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: rgba(28,28,32,0.95);
  border-bottom-color: #84a9ff;
  text-shadow: 0 0 12px rgba(132,169,255,0.5), 0 0 24px rgba(132,169,255,0.2);
}

.nav-link.sale-link { color: rgba(88,225,181,0.85); }
.nav-link.sale-link:hover { color: #58e1b5; border-bottom-color: #58e1b5; text-shadow: 0 0 10px rgba(88,225,181,0.4); }

/* 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); }


/* 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); }
.wallet-btn.wallet-connecting {
  pointer-events: none;
  border-color: rgba(125,232,240,0.5);
  background: rgba(125,232,240,0.08);
  animation: walletPulse 1.2s ease-in-out infinite;
}
@keyframes walletPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125,232,240,0.25); }
  50%      { box-shadow: 0 0 12px 3px rgba(125,232,240,0.35); }
}

/* Connection status indicator — two-segment pill */
.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(88,225,181,0.15);
}
.conn-status.visible { display: flex; }
.conn-status.visible ~ .wallet-btn { display: none; }

/* Left segment: Network */
.conn-seg-network {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px 0 7px;
  background: rgba(255,255,255,0.07);
}
.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);
}

/* Right segment: Wallet type */
.conn-seg-wallet {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 9px 0 7px;
  background: rgba(255,255,255,0.03);
  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);
}

/* Pulsing green dot */
.conn-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #58e1b5;
  box-shadow: 0 0 6px rgba(88,225,181,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(88,225,181,0.4); }
  50% { box-shadow: 0 0 10px rgba(88,225,181,0.8); }
}

/* 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;
  position: relative;
  filter: drop-shadow(0 0 4px rgba(180,170,220,0.45));
}
.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(180,170,220,0.7)); }

@keyframes pagerPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(180,170,220,0.45)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 7px rgba(190,180,230,0.6)); transform: scale(1.04); }
}



/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  width: 100%;
  background: rgb(113,112,117);
  border-top: 1px solid rgba(255,255,255,0.12);
  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(28,28,32,0.55); 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(28,28,32,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(28,28,32,0.6); text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}
.footer-social-icon:hover { border-color: #222; color: #222; }

.footer-contact {
  display: flex; flex-direction: column; gap: 6px;
}
.footer-contact span {
  font-size: 11px; letter-spacing: 0.1em;
  color: rgba(28,28,32,0.65);
}

.footer-email-form { display: flex; gap: 8px; align-items: center; }
.footer-email-form input {
  height: 36px; padding: 0 16px;
  background: rgba(180,190,220,0.12);
  border: 1.5px solid rgba(160,170,220,0.45);
  border-radius: 20px;
  color: #3ddc84; font-family: var(--font); font-size: 12px;
  outline: none; width: 200px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.footer-email-form input::placeholder { color: rgba(50,55,75,0.5); }
.footer-email-form input:focus { border-color: rgba(150,160,220,0.7); box-shadow: 0 0 10px rgba(150,165,225,0.25); color: #3ddc84; }
.footer-email-form button {
  height: 36px; padding: 0 18px;
  background: rgba(120,175,140,0.22);
  border: 1.5px solid rgba(120,175,140,0.35);
  border-radius: 20px;
  color: rgba(40,55,50,0.8); 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(120,175,140,0.35); border-color: rgba(120,175,140,0.5); color: rgba(30,45,40,0.95); box-shadow: 0 0 10px rgba(120,175,140,0.3); transform: scale(1.03); }

.footer-chain-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px auto 10px;
  padding: 6px 18px;
  border: 1px solid rgba(200,200,220,0.2);
  border-radius: 20px;
  background: rgba(40,38,50,0.45);
  width: fit-content;
  position: relative;
  overflow: hidden;
}
.chain-badge-glow {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  box-shadow: inset 0 0 18px rgba(200,210,255,0.15), 0 0 28px rgba(190,200,245,0.1);
  pointer-events: none;
  animation: chainPulse 6s ease-in-out infinite alternate;
}
@keyframes chainPulse {
  0%   { box-shadow: inset 0 0 18px rgba(200,210,255,0.15), 0 0 28px rgba(190,200,245,0.1); }
  100% { box-shadow: inset 0 0 26px rgba(210,215,255,0.25), 0 0 40px rgba(195,205,250,0.18); }
}
.chain-badge-icon {
  flex-shrink: 0;
  opacity: 0.8;
}
.chain-badge-text {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(220,218,230,0.7);
}
.chain-badge-chains {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(215,210,245,0.95);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(190,185,240,0.4), 0 0 20px rgba(180,175,235,0.2);
}
.chain-badge-sep {
  font-size: 10px;
  color: rgba(220,218,230,0.4);
}
.footer-chain-badge:hover {
  border-color: rgba(210,210,230,0.3);
  background: rgba(40,38,50,0.55);
}
.footer-chain-badge:hover .chain-badge-chains {
  color: rgba(230,225,255,1);
  text-shadow: 0 0 10px rgba(200,195,250,0.5), 0 0 24px rgba(190,185,245,0.3);
}

.footer-bottom {
  font-size: 10px; letter-spacing: 0.15em;
  color: rgba(28,28,32,0.55); 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); }

/* ── 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));
}

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

/* ── Sold Out badge & dimming ─────────────────────── */
.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 (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)); }
.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 (light gray theme) ──────────────────────── */
.profile-page {
  min-height: calc(100vh - var(--nav-height));
  padding: clamp(24px, 5vw, 48px) clamp(14px, 3vw, 24px);
  background: #e8e8ec;
  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);
}

/* 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(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 styling */
.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 (gray theme) ───────────────────────── */
.receipt-page { min-height: calc(100vh - var(--nav-height)); padding: clamp(24px, 5vw, 48px) clamp(14px, 3vw, 24px); background: #e8e8ec; color: rgba(28,28,32,0.85); }
.receipt-inner { max-width: 700px; margin: 0 auto; overflow: hidden; }

.receipt-page .order-card {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(28,28,32,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(28,28,32,0.35); font-family: monospace; }
.receipt-page .order-date { font-size: 10px; color: rgba(28,28,32,0.3); }
.receipt-page .order-items-list { margin-bottom: 12px; }
.receipt-page .order-item-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(28,28,32,0.6);
  padding: 4px 0; letter-spacing: 0.04em;
}
.receipt-page .order-total { font-size: 13px; color: rgba(28,28,32,0.75); font-weight: 400; }
.receipt-page .order-personal { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(28,28,32,0.08); }
.receipt-page .order-personal-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: rgba(28,28,32,0.45); margin-bottom: 4px;
}
.receipt-page .order-personal-item .delete-personal {
  background: none; border: none; color: rgba(220,50,50,0.65);
  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(200,40,40,0.9); }
.receipt-page .btn-ghost {
  background: rgba(255,255,255,0.35);
  border-color: rgba(28,28,32,0.15);
  color: rgba(28,28,32,0.6);
}
.receipt-page .btn-ghost:hover {
  border-color: rgba(28,28,32,0.35);
  color: rgba(28,28,32,0.9);
}
.receipt-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);
}
.receipt-page .btn-danger:hover {
  background: rgba(220,50,50,0.15);
}
.receipt-page .tx-hash {
  color: rgba(88,160,200,0.9);
  background: rgba(88,160,200,0.06);
  border-color: rgba(88,160,200,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)); }
.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 ───────────────────────────────────────── */

@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; }
}

@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-right { flex: 0 0 auto; }
  /* On mobile, hide the wallet text button but keep the conn-status pill visible (compact) */
  .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; }
  .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; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 10px; }
  .nav-center { gap: 0; }
  .nav-link { padding: 0 6px; font-size: 10px; letter-spacing: 0.1em; }
  .cart-btn { width: 34px; height: 34px; }
  /* 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; }
  .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; }
}