/* ============================================================
   YOUR SHOP XP — style.css  (shared by all pages)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-image: url("IMG_6700.jpg");
  min-height: 100vh;
  font-family: 'VT323', monospace;
  font-size: 16px;
  overflow-x: hidden;
  padding-bottom: 34px;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 9999;
}

/* ── GRID ── */
.desktop {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto 1fr;
  gap: 8px;
  padding: 8px;
  min-height: 100vh;
  max-width: 860px;
  margin: 0 auto;
}

/* ── TOP NAV ── */
.topnav {
  grid-column: 1 / -1;
  display: flex; align-items: center;
  background: linear-gradient(90deg, #003c74 0%, #0058a3 30%, #003c74 100%);
  border: 2px solid #6fa3d4;
  border-bottom: 3px solid #003c74;
  padding: 4px 0;
  animation: slideDown 0.35s ease-out both;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.topnav a {
  display: block;
  padding: 6px 20px;
  color: #fff;
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-right: 2px solid rgba(255,255,255,0.2);
  position: relative;
  transition: background 0.15s, color 0.15s, letter-spacing 0.2s;
}
.topnav a::after {
  content: '';
  position: absolute; bottom: 0; left: 50%;
  width: 0; height: 2px; background: #ffe000;
  transition: width 0.2s, left 0.2s;
}
.topnav a:hover::after, .topnav a.active::after { width: 100%; left: 0; }
.topnav a:hover, .topnav a.active {
  background: rgba(255,255,255,0.18);
  color: #ffe000; letter-spacing: 2px;
}

.site-logo { margin-left: auto; margin-right: 8px; display: flex; align-items: center; gap: 6px; }
.site-logo span {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px; color: #fff; line-height: 1.3;
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { text-shadow: 0 0 6px #00ffff, 1px 1px 0 #000; }
  50%     { text-shadow: 0 0 20px #00ffff, 0 0 35px #0ff, 1px 1px 0 #000; }
}
.xp-flag {
  width: 32px; height: 32px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  border-radius: 3px; overflow: hidden;
  animation: flagHue 6s linear infinite;
}
@keyframes flagHue { to { filter: hue-rotate(360deg); } }
.xp-flag div:nth-child(1) { background: #f00; }
.xp-flag div:nth-child(2) { background: #0a0; }
.xp-flag div:nth-child(3) { background: #00f; }
.xp-flag div:nth-child(4) { background: #ff0; }

/* ── COLUMNS ── */
.sidebar   { display: flex; flex-direction: column; gap: 6px; }
.main-area { display: flex; flex-direction: column; gap: 6px; }

/* ── XP WINDOW CHROME ── */
.xp-win {
  background: #ece9d8;
  border: 2px solid;
  border-color: #fff #848484 #848484 #fff;
  box-shadow: 1px 1px 0 #000, inset 1px 1px 0 rgba(255,255,255,.8);
  animation: winPopIn 0.35s cubic-bezier(.34,1.56,.64,1) both;
  transition: box-shadow 0.15s, transform 0.15s;
}
@keyframes winPopIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.sidebar .xp-win:nth-child(1) { animation-delay: 0.05s; }
.sidebar .xp-win:nth-child(2) { animation-delay: 0.12s; }
.sidebar .xp-win:nth-child(3) { animation-delay: 0.18s; }
.sidebar .xp-win:nth-child(5) { animation-delay: 0.24s; }
.xp-win:hover {
  box-shadow: 3px 5px 0 #000, inset 1px 1px 0 rgba(255,255,255,.8);
  transform: translateY(-1px);
}

.xp-win .title-bar {
  background: linear-gradient(180deg, #0a246a 0%, #3169c4 5%, #3a6fd8 50%, #2457c5 95%, #0a246a 100%);
  color: #fff; display: flex; align-items: center;
  padding: 3px 4px;
  font-family: 'Tahoma', sans-serif; font-size: 11px; font-weight: bold;
  gap: 4px; user-select: none;
}
.xp-win .title-bar .title-icon { font-size: 14px; }
.xp-win .title-bar .title-text { flex: 1; }
.xp-win .title-bar .win-btns   { display: flex; gap: 2px; }

/* ── BUTTON FIX (overrides XP.css global bloat) ── */
.xp-win .title-bar .win-btns button {
  all: unset;
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 16px !important; height: 14px !important;
  font-size: 8px !important; font-weight: bold !important;
  font-family: 'Tahoma', sans-serif !important; line-height: 1 !important;
  border: 1px solid !important; border-color: #fff #848484 #848484 #fff !important;
  background: #d4d0c8 !important; color: #000 !important;
  cursor: pointer !important; flex-shrink: 0 !important;
  box-sizing: border-box !important;
  transition: background 0.1s, transform 0.1s;
}
.xp-win .title-bar .win-btns button:hover { background: #e6e3da !important; transform: scale(1.18); }
.xp-win .title-bar .win-btns button:active { border-color: #848484 #fff #fff #848484 !important; transform: scale(0.9); }
.xp-win .title-bar .win-btns button.close-btn { background: #c0392b !important; color: #fff !important; }
.xp-win .title-bar .win-btns button.close-btn:hover { background: #e74c3c !important; }

.xp-win .win-body { padding: 6px; font-family: 'VT323', monospace; font-size: 15px; }

/* ── TERMINAL WELCOME ── */
.welcome-win .win-body {
  background: #000; color: #0f0; font-size: 13px; min-height: 80px;
  line-height: 1.6; padding: 10px; font-family: 'VT323', monospace;
  position: relative; overflow: hidden;
}
.welcome-win .win-body::after {
  content: ''; position: absolute; top: -40%; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0,255,0,0.06), transparent);
  animation: crtSweep 3s linear infinite; pointer-events: none;
}
@keyframes crtSweep { from { top: -40%; } to { top: 110%; } }
.welcome-win .win-body p { margin-bottom: 4px; }

.cursor-blink {
  display: inline-block; width: 8px; height: 14px; background: #0f0;
  vertical-align: middle; animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── MARQUEE ── */
.marquee-area {
  background: #000; color: #0ff; font-size: 12px; padding: 2px 0;
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(0,255,255,0.2);
  border-bottom: 1px solid rgba(0,255,255,0.2);
}
.marquee-inner { display: inline-block; animation: scrollLeft 22s linear infinite; }
@keyframes scrollLeft {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ── SECTION STRIPE ── */
.section-label {
  background: linear-gradient(90deg, #1044a0, #316ac5, #6a93e0, #316ac5, #1044a0);
  background-size: 300% 100%;
  color: #fff; font-family: 'Press Start 2P', monospace;
  font-size: 7px; padding: 3px 8px; letter-spacing: 2px; text-transform: uppercase;
  animation: labelShift 5s linear infinite;
}
@keyframes labelShift { 0% { background-position: 0% 0; } 100% { background-position: 300% 0; } }

/* ── MARKETS LIST ── */
.markets-list { list-style: none; padding: 4px 0; }
.markets-list li {
  padding: 2px 4px; font-size: 13px;
  color: #0000ee; text-decoration: underline; cursor: pointer;
  transition: color 0.1s, padding-left 0.15s;
}
.markets-list li:hover { color: #f00; padding-left: 10px; }
.markets-list .date { color: #888; font-size: 11px; text-decoration: none; display: block; }

.star-rating {
  color: gold; letter-spacing: -1px; font-size: 14px; padding: 2px 4px;
  display: inline-block; animation: starShimmer 2s ease-in-out infinite;
}
@keyframes starShimmer {
  0%,100% { filter: drop-shadow(0 0 0 gold); }
  50%     { filter: drop-shadow(0 0 6px gold) brightness(1.5); }
}

/* ── CHAR BOX ── */
.char-box {
  background: linear-gradient(135deg, #c8f0ff 0%, #e0ffee 100%);
  border: 2px dashed #66ccff; padding: 6px; text-align: center;
  font-size: 13px; color: #005599;
  animation: borderColorShift 5s linear infinite;
}
@keyframes borderColorShift {
  0% { border-color: #66ccff; } 33% { border-color: #cc66ff; }
  66% { border-color: #66ffcc; } 100% { border-color: #66ccff; }
}
.char-box .char-img {
  width: 100%; max-width: 180px; height: 160px;
  background: linear-gradient(135deg, #b3e5fc, #e1f5fe, #c8e6c9);
  border: 2px solid #66ccff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 4px; font-size: 40px; position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.char-box .char-img:hover { transform: scale(1.05) rotate(-1.5deg); box-shadow: 0 0 14px #66ccff99; }
.char-box .char-img::before { content: '🎀'; position: absolute; font-size: 80px; opacity: 0.15; }
.char-box p { font-size: 11px; color: #0055bb; }

/* ── CANDY ── */
.candy-box { background: #fff8f0; border: 1px inset #ccc; padding: 4px; max-height: 200px; overflow-y: auto; }
.candy-item { display: flex; align-items: center; gap: 6px; padding: 4px; font-size: 13px; transition: background 0.15s; }
.candy-item:hover { background: #fff0e0; }
.candy-thumb {
  width: 48px; height: 36px;
  background: linear-gradient(135deg, #ffe08a, #d4a017);
  border: 1px solid #ccc; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; overflow: hidden; transition: transform 0.2s;
}
.candy-item:hover .candy-thumb { transform: rotate(6deg) scale(1.12); }

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding: 8px; background: #fff;
  border: 1px inset #999; max-height: 520px; overflow-y: auto;
}
.product-grid::-webkit-scrollbar { width: 16px; }
.product-grid::-webkit-scrollbar-track { background: #d4d0c8; }
.product-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fff 0%, #d4d0c8 50%, #808080 100%);
  border: 1px solid #808080;
}
.product-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px;
  cursor: pointer; border: 1px solid transparent;
  transition: border-color 0.12s, background 0.12s,
              transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.15s;
}
.product-card:hover {
  border-color: #316ac5; background: #dde9f8;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 12px rgba(49,106,197,0.28);
}
.product-card:active { transform: translateY(-1px) scale(1.01); }

.product-img {
  width: 100%; aspect-ratio: 1; border: 1px solid #ccc;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; position: relative; overflow: hidden;
  transition: filter 0.2s;
  /* default soft pastel bg — overridden per-card below */
  background: linear-gradient(135deg, #f0e8ff, #e8f0ff);
}
.product-card:hover .product-img { filter: saturate(1.4) brightness(1.06); }
.product-img::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255,255,255,0.3) 4px, rgba(255,255,255,0.3) 5px);
  pointer-events: none;
}
/* per-position pastel backgrounds */
.product-card:nth-child(1)  .product-img { background: linear-gradient(135deg,#ffd6e7,#ffe8d6); }
.product-card:nth-child(2)  .product-img { background: linear-gradient(135deg,#d6f0ff,#d6ffd6); }
.product-card:nth-child(3)  .product-img { background: linear-gradient(135deg,#f0d6ff,#ffd6d6); }
.product-card:nth-child(4)  .product-img { background: linear-gradient(135deg,#d6ffe8,#d6f0ff); }
.product-card:nth-child(5)  .product-img { background: linear-gradient(135deg,#fff3d6,#ffd6f0); }
.product-card:nth-child(6)  .product-img { background: linear-gradient(135deg,#d6d6ff,#d6fff0); }
.product-card:nth-child(7)  .product-img { background: linear-gradient(135deg,#ffd6d6,#d6fff0); }
.product-card:nth-child(8)  .product-img { background: linear-gradient(135deg,#d6f0d6,#ffd6ff); }
.product-card:nth-child(9)  .product-img { background: linear-gradient(135deg,#ffe8d6,#d6d6ff); }
.product-card:nth-child(10) .product-img { background: linear-gradient(135deg,#ffd6e7,#d6f0ff); }
.product-card:nth-child(11) .product-img { background: linear-gradient(135deg,#d6fff0,#ffe8d6); }
.product-card:nth-child(12) .product-img { background: linear-gradient(135deg,#f0ffd6,#ffd6d6); }

.product-name {
  font-size: 12px; color: #0000cc; text-decoration: underline;
  text-align: center; cursor: pointer; font-family: 'VT323', monospace;
  transition: color 0.1s;
}
.product-name:hover { color: #f00; }
.product-price { font-family: 'Press Start 2P', monospace; font-size: 7px; color: #c00; }

/* ── EMPTY STATE (for categories with no items yet) ── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 30px 0; color: #aaa;
  font-family: 'Press Start 2P', monospace; font-size: 7px; line-height: 2;
}
.empty-state .empty-icon { font-size: 36px; display: block; margin-bottom: 10px; opacity: 0.4; }

/* ── BANNERS ── */
.banners {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 6px;
  background: #ece9d8; border-top: 2px inset #999; align-items: center;
}
.banner-item {
  width: 88px; height: 31px; border: 1px solid #000;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace; font-size: 5px; text-align: center;
  cursor: pointer; overflow: hidden; transition: transform 0.15s, filter 0.15s;
}
.banner-item:hover { filter: brightness(1.3) saturate(1.5); transform: scale(1.1) rotate(-1.5deg); }
.banner-item.b1 { background: linear-gradient(135deg,#ff69b4,#ff1493); color: #fff; }
.banner-item.b2 { background: #000; color: #0f0; }
.banner-item.b3 { background: linear-gradient(135deg,#4040ff,#8000ff); color: #fff; }
.banner-item.b4 { background: #ff4500; color: #fff; }
.banner-item.b5 { background: linear-gradient(135deg,#00bfff,#1e90ff); color: #fff; }
.banner-nav-hint {
  font-family: 'Press Start 2P', monospace; font-size: 6px; color: #0000cc; margin-left: auto;
  animation: blink 1.4s step-end infinite;
}

/* ── NYAN CAT ── */
.nyan-area {
  display: flex; align-items: center; justify-content: center;
  padding: 4px; gap: 4px; background: #000; font-size: 28px; overflow: hidden;
  animation: rainbowBg 1s linear infinite;
}
@keyframes rainbowBg { to { filter: hue-rotate(360deg); } }
.nyan-cat { display: inline-block; animation: nyanBounce 0.4s step-end infinite; }
@keyframes nyanBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.rainbow-trail {
  font-size: 10px; color: #fff; font-family: 'Press Start 2P', monospace;
  animation: trailFlash 0.4s step-end infinite;
}
@keyframes trailFlash { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── CREDITS ── */
.credits-list { padding: 4px; }
.credits-list a {
  color: #0000ee; display: block; font-size: 12px; text-decoration: underline;
  transition: color 0.1s, padding-left 0.15s;
}
.credits-list a:hover { color: #f00; padding-left: 8px; }

/* ── XP BUTTON ── */
.xp-btn {
  background: linear-gradient(180deg,#fff 0%,#e6e3da 40%,#d4d0c8 100%);
  border: 2px solid; border-color: #fff #848484 #848484 #fff;
  padding: 4px 14px; font-family: 'Tahoma', sans-serif;
  font-size: 11px; cursor: pointer; box-shadow: 1px 1px 0 #000;
  display: inline-block; text-decoration: none; color: #000;
  transition: background 0.1s, transform 0.12s;
}
.xp-btn:hover { background: linear-gradient(180deg,#fffce6 0%,#f0edd4 40%,#e0dcc8 100%); transform: translateY(-1px); }
.xp-btn:active { border-color: #848484 #fff #fff #848484; box-shadow: none; transform: translateY(0); }

/* ── MISC ── */
.divider { height: 2px; background: linear-gradient(90deg,transparent,#66f,transparent); margin: 4px 0; }

/* ── TASKBAR ── */
.taskbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: 30px;
  background: linear-gradient(180deg,#245edb 0%,#3a7ffc 8%,#2158e8 15%,#1747cc 100%);
  border-top: 1px solid #1035a0;
  display: flex; align-items: center; padding: 0 4px; gap: 4px;
  z-index: 1000; box-shadow: 0 -2px 4px rgba(0,0,0,0.5);
}
.taskbar-start {
  background: linear-gradient(180deg,#3ec227 0%,#2a9e14 100%);
  color: #fff; font-family: 'Tahoma',sans-serif; font-size: 12px;
  font-weight: bold; font-style: italic;
  border: 1px solid; border-color: #6edd52 #1a7010 #1a7010 #6edd52;
  border-radius: 0 10px 10px 0; padding: 2px 14px 2px 8px;
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  transition: filter 0.1s, transform 0.1s;
}
.taskbar-start:hover { filter: brightness(1.15); transform: scale(1.05); }
.taskbar-start:active { filter: brightness(0.9); transform: scale(0.97); }
.taskbar-btn {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 2px 8px; font-family: 'Tahoma',sans-serif;
  font-size: 10px; cursor: pointer; text-decoration: none;
  display: flex; align-items: center;
  transition: background 0.1s;
}
.taskbar-btn:hover { background: rgba(255,255,255,0.3); }
.taskbar-clock {
  margin-left: auto; background: rgba(0,0,50,0.5); color: #fff;
  font-family: 'Tahoma',sans-serif; font-size: 10px;
  padding: 2px 8px; border: 1px solid rgba(255,255,255,0.2);
}

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 500;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.15s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-win {
  background: #ece9d8; border: 2px solid;
  border-color: #fff #848484 #848484 #fff;
  width: 360px; box-shadow: 4px 4px 0 #000;
  animation: modalBounceIn 0.25s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes modalBounceIn {
  from { transform: scale(0.8) translateY(16px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-body { padding: 16px; text-align: center; }
.modal-body .big-emoji { font-size: 48px; margin-bottom: 8px; display: block; animation: emojiWiggle 0.5s ease both; }
@keyframes emojiWiggle {
  0%,100% { transform: rotate(0deg) scale(1); }
  25%     { transform: rotate(-10deg) scale(1.15); }
  75%     { transform: rotate(10deg) scale(1.15); }
}
.modal-body h3 { font-family: 'VT323',monospace; font-size: 20px; color: #333; margin-bottom: 4px; }
.modal-body .price-big {
  font-family: 'Press Start 2P',monospace; font-size: 14px; color: #c00; margin: 8px 0;
  animation: pricePulse 1.2s ease-in-out infinite;
}
@keyframes pricePulse { 0%,100% { color:#c00; } 50% { color:#ff5555; text-shadow:0 0 6px #f004; } }
.modal-body p { font-size: 14px; color: #555; margin-bottom: 12px; }
.modal-body .btn-row { display: flex; gap: 8px; justify-content: center; }

/* ── ABOUT PAGE: SOCIALS ── */
.socials-list { padding: 4px; }
.social-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 6px;
  border-bottom: 1px solid #ddd; text-decoration: none;
  transition: background 0.12s, padding-left 0.15s;
}
.social-row:last-child { border-bottom: none; }
.social-row:hover { background: #dde9f8; padding-left: 14px; }
.social-icon { font-size: 18px; }
.social-label { font-family: 'Press Start 2P',monospace; font-size: 6px; color: #0000cc; flex: 1; }
.social-handle { font-size: 12px; color: #888; font-family: 'VT323',monospace; }

/* ── ABOUT PAGE: FAQ ── */
.faq-list { padding: 4px; }
.faq-item { padding: 6px 4px; border-bottom: 1px dashed #ccc; transition: background 0.12s; }
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: #f5f2e8; }
.faq-q { font-family: 'Press Start 2P',monospace; font-size: 6px; color: #003080; margin-bottom: 3px; }
.faq-a { font-size: 13px; color: #555; font-family: 'VT323',monospace; }