:root {
  --sw-bg: #0a0e14;
  --sw-panel: #121820;
  --sw-text: #e8eef7;
  --sw-muted: #8b9cb3;
  --sw-accent: #5eead4;
  --sw-red: #c41e3a;
  --sw-border: #243044;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--sw-bg);
  color: var(--sw-text);
  line-height: 1.55;
}

body.swag-embed .swag-header,
body.swag-embed .swag-foot {
  display: none;
}

body.swag-embed .swag-main {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

body.swag-embed .swag-grid {
  margin-top: 0.25rem;
}

a { color: var(--sw-accent); }

.swag-header, .swag-main, .swag-foot {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.swag-dek { color: var(--sw-muted); margin: 0.25rem 0 0; }

.swag-note {
  padding: 0.85rem 1rem;
  border: 1px dashed var(--sw-border);
  border-radius: 10px;
  color: var(--sw-muted);
  font-size: 0.9rem;
}

.swag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .swag-grid {
    grid-template-columns: 1fr;
  }
}

.swag-card {
  border: 1px solid var(--sw-border);
  border-radius: 12px;
  background: var(--sw-panel);
  overflow: hidden;
}

.swag-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #05070a;
}

.swag-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #05070a;
  cursor: zoom-in;
}

.swag-card-img > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.swag-card-img--hover:hover > img,
.swag-card-img--hover:focus-within > img {
  opacity: 0.15;
}

.swag-preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  background: rgb(10 14 20 / 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 2;
}

.swag-card-img--hover:hover .swag-preview,
.swag-card-img--hover:focus-within .swag-preview {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.swag-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
  height: 100%;
}

.swag-preview-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgb(255 255 255 / 0.04);
  border-radius: 6px;
  border: 1px solid var(--sw-border);
}

.swag-card-body { padding: 0.85rem; }
.swag-card h2 { margin: 0 0 0.35rem; font-size: 1rem; }
.swag-card p { margin: 0; font-size: 0.82rem; color: var(--sw-muted); }

.swag-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.swag-price {
  color: var(--sw-accent);
  font-weight: 800;
  font-size: 1rem;
}

.swag-buy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #5eead4, #14b8a6);
  color: #041018;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.swag-buy:hover {
  color: #041018;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgb(94 234 212 / 0.25);
}

.swag-foot {
  border-top: 1px solid var(--sw-border);
  font-size: 0.82rem;
  color: var(--sw-muted);
}
