/* Shooterr Store — additions on top of the captured layout */

/* ---------- monochrome theme ---------- */
.dark {
  --primary: 0 0% 96%;
  --primary-soft: 0 0% 72%;
  --primary-foreground: 0 0% 4%;
  --accent: 0 0% 96%;
  --accent-foreground: 0 0% 4%;
  --neon-blue: 0 0% 96%;
  --ring: 0 0% 96%;
}
main img,
.ss-modal img {
  filter: grayscale(1) contrast(1.04);
}
/* background art keeps its dimming but loses all color */
.games-art {
  filter: brightness(0.8) saturate(0.6) grayscale(1) contrast(1.04) !important;
}
.games-card:hover .games-art {
  filter: brightness(0.92) saturate(0.8) grayscale(1) contrast(1.04) !important;
}
.products-art,
.products-tile-art {
  filter: brightness(0.55) saturate(0.6) grayscale(1) contrast(1.04) !important;
}
.products-banner:hover .products-art,
.group:hover > .products-tile-art {
  filter: brightness(0.68) saturate(0.75) grayscale(1) contrast(1.04) !important;
}
/* sale / status accents -> monochrome */
.text-red-400 { color: hsl(0 0% 82%) !important; }
.bg-red-500\/10 { background-color: hsl(0 0% 100% / 0.07) !important; }
.border-red-500\/40 { border-color: hsl(0 0% 100% / 0.32) !important; }
.bg-red-400 { background-color: hsl(0 0% 88%) !important; }
.text-primary { color: hsl(var(--primary)); }

/* ---------- mobile navigation ---------- */
.ss-mobile-nav {
  position: fixed;
  inset-inline: 0;
  top: 88px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  background: #000;
  border-bottom: 1px solid hsl(var(--border));
  padding: 10px clamp(3rem, 4vw, 5rem) 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.ss-mobile-nav[hidden] { display: none; }
.ss-mobile-nav a {
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--foreground) / 0.75);
  font-weight: 600;
  font-size: 1rem;
}
.ss-mobile-nav a:last-child { border-bottom: 0; }
.ss-mobile-nav a:hover { color: hsl(var(--primary)); }

/* ---------- modal ---------- */
.ss-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.ss-modal[hidden] { display: none; }
.ss-modal.is-open { opacity: 1; }
.ss-modal__scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.ss-modal__dialog {
  position: relative;
  width: min(900px, 100%);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  transform: translateY(12px) scale(0.99);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.ss-modal.is-open .ss-modal__dialog { transform: none; }
.ss-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.85);
  color: hsl(var(--muted-foreground));
  transition: 0.2s;
}
.ss-modal__close:hover { color: hsl(var(--foreground)); border-color: hsl(var(--foreground) / 0.3); }
.ss-modal__close svg { width: 18px; height: 18px; }

/* ---------- modal content ---------- */
.ss-product { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.ss-product__media img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid hsl(var(--border));
  display: block;
}
.ss-product__body { display: flex; flex-direction: column; }
.ss-eyebrow {
  font-family: var(--font-mono, ui-monospace);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0 0 8px;
}
#ssModalTitle, .ss-product h3, .ss-order h3 {
  font-family: var(--font-display, inherit);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
  margin: 0;
  font-weight: 900;
}
.ss-desc { color: hsl(var(--muted-foreground)); margin: 12px 0 0; font-size: 0.95rem; line-height: 1.65; }
.ss-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.ss-list li { position: relative; padding-left: 22px; font-size: 0.9rem; color: hsl(var(--foreground) / 0.88); }
.ss-list li::before {
  content: "";
  position: absolute; left: 2px; top: 0.42em;
  width: 8px; height: 8px; border-radius: 50%;
  background: hsl(var(--primary) / 0.25);
  box-shadow: inset 0 0 0 1.5px hsl(var(--primary));
}
.ss-price { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.ss-price span { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.ss-price strong { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; }
.ss-price s { color: hsl(var(--muted-foreground) / 0.7); font-size: 0.95rem; }
.ss-note {
  font-family: var(--font-mono, ui-monospace);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: hsl(var(--muted-foreground) / 0.7); margin: 6px 0 0;
}
.ss-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ss-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 10px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.4);
  color: hsl(var(--foreground));
  font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: 0.2s;
}
.ss-btn:hover { background: hsl(var(--muted)); }
.ss-btn--primary {
  background: hsl(var(--primary)); border-color: transparent; color: hsl(var(--primary-foreground));
  box-shadow: 0 12px 32px -14px hsl(var(--primary) / 0.85);
}
.ss-btn--primary:hover { background: hsl(var(--primary) / 0.9); }
.ss-btn--block { width: 100%; }
.ss-fine { color: hsl(var(--muted-foreground) / 0.8); font-size: 0.76rem; margin: 16px 0 0; line-height: 1.6; }
.ss-pre {
  background: #050505;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0 0;
  font-family: var(--font-mono, ui-monospace);
  font-size: 0.8rem;
  line-height: 1.85;
  color: hsl(var(--foreground) / 0.9);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow-y: auto;
}
.ss-order { max-width: 560px; }
.ss-legal h4 { margin: 22px 0 8px; font-size: 0.95rem; color: hsl(var(--foreground)); }
.ss-legal p, .ss-legal li { margin: 6px 0; color: hsl(var(--muted-foreground)); font-size: 0.9rem; line-height: 1.7; }
.ss-legal ul { margin: 0; padding-left: 20px; }

/* ---------- toast ---------- */
.ss-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: calc(100vw - 32px);
  text-align: center;
}
.ss-toast.is-open { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 780px) {
  .ss-product { grid-template-columns: 1fr; gap: 20px; }
  .ss-modal { padding: 14px; }
  .ss-modal__dialog { padding: 24px 20px; }
  .ss-product__media img { max-height: 210px; object-fit: cover; }
  #ssModalTitle, .ss-product h3, .ss-order h3 { font-size: 1.6rem; }
  .ss-price strong { font-size: 1.55rem; }
}
@media (min-width: 1024px) {
  .ss-mobile-nav { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ss-modal, .ss-modal__dialog, .ss-toast { transition: none; }
}
