/* Rare Odd Records — store. Continuity with live site: black / white / #d32f2f,
   Montserrat display + Plus Jakarta Sans body. Final tokens await DESIGN.md. */
:root {
  --ink: #f1f1f1;
  --ink-dim: #9ca3af;
  --bg: #0a0a0a;
  --panel: #141414;
  --panel-edge: #232323;
  --red: #d32f2f;
  --red-deep: #4a0000;
  --body: "Plus Jakarta Sans", sans-serif;
  --display: "Montserrat", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(211, 47, 47, 0.08), transparent 60%),
    var(--bg);
}

/* film grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.masthead {
  padding: 56px 24px 8px;
  max-width: 1180px;
  margin: 0 auto;
}

.label-mark {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.35em;
  font-weight: 700;
}
.label-mark:hover { color: var(--red); }

.display {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(44px, 9vw, 110px);
  line-height: 0.92;
  margin: 18px 0 10px;
  letter-spacing: -0.02em;
}
.display-line { display: block; }

.accent-sweep {
  position: relative;
  width: fit-content;
  color: var(--ink);
}
.accent-sweep::after {
  content: "";
  position: absolute;
  left: 2%;
  bottom: 6px;
  height: 0.16em;
  width: 0;
  background: var(--red);
  animation: sweep 0.7s 0.35s cubic-bezier(0.65, 0, 0.2, 1) forwards;
}
@keyframes sweep { to { width: 101%; } }

.sub {
  color: var(--ink-dim);
  margin: 6px 0 0 4px;
  font-size: 15px;
}

.notice {
  max-width: 1180px;
  margin: 22px auto 0;
  padding: 14px 18px;
  border-left: 3px solid var(--red);
  background: rgba(211, 47, 47, 0.09);
  font-size: 14px;
}
.notice.ok { border-left-color: #3fa34d; background: rgba(63, 163, 77, 0.09); }

main {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 0 24px 80px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.loading {
  color: var(--ink-dim);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  grid-column: 1 / -1;
  padding: 60px 0;
}
.spin {
  width: 14px; height: 14px;
  border: 2px solid var(--panel-edge);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: rot 0.8s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(211, 47, 47, 0.35);
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.card-img-wrap {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 42%, #1e1e1e, #101010 72%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-img-wrap img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover .card-img-wrap img { transform: scale(1.045) rotate(-1deg); }

.card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-name {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 14.5px;
  margin: 0;
  line-height: 1.35;
}

.card-price {
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.variant-select {
  width: 100%;
  background: #0d0d0d;
  color: var(--ink);
  border: 1px solid var(--panel-edge);
  padding: 9px 10px;
  font-family: var(--body);
  font-size: 13px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239ca3af'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.variant-select:focus { outline: none; border-color: var(--red); }

.buy-btn {
  margin-top: auto;
  background: var(--red);
  color: #fff;
  border: none;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  padding: 13px 0;
  cursor: pointer;
  transition: background 0.2s, letter-spacing 0.25s;
}
.buy-btn:hover:not(:disabled) { background: #b02121; letter-spacing: 0.2em; }
.buy-btn:disabled { opacity: 0.55; cursor: wait; }

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 44px;
  color: #525252;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  display: flex;
  gap: 10px;
  border-top: 1px solid #171717;
}
.foot-dot { color: var(--red-deep); }
