@font-face {
  font-family: 'Apex Prix';
  src: url('./fonts/ps-apex-prix.woff2') format('woff2'),
       url('./fonts/ps-apex-prix.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #09090b;
  --bg-2: #0f1014;
  --panel: rgba(255,255,255,0.03);
  --text: #f5f1e8;
  --muted: #ada69a;
  --line: rgba(255,255,255,0.1);
  --soft-line: rgba(255,255,255,0.06);
  --accent: #efe2b2;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.04), transparent 28%),
    linear-gradient(180deg, #070709 0%, #0a0b0f 48%, #09090b 100%);
  color: var(--text);
}
body.contact-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.wrap { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(9, 9, 11, 0.54);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
.brand {
  font-family: 'Apex Prix', 'Inter', sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.main-nav a,
.main-nav button,
.footer-links button {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.main-nav a:hover,
.main-nav button:hover,
.footer-links a:hover,
.footer-links button:hover { color: var(--text); }

.catalog-page { min-height: calc(100vh - 140px); }
.store-section { padding: 2rem 0 4rem; }
.section-heading-minimal { margin-bottom: 1.35rem; }
.section-heading h1,
.catalog-heading h2,
.info-intro h1,
.product-title,
.empty-state h3,
.contact-pop h2 {
  margin: 0;
  line-height: 1;
  letter-spacing: -0.03em;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.section-heading h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}
.catalog-block + .catalog-block { margin-top: 3rem; }
.catalog-heading-minimal { margin-bottom: 1rem; }
.catalog-heading h2,
.footer-heading,
.contact-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}
.product-card {
  overflow: hidden;
}
.product-image-shell {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.02);
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0.35rem 0.65rem;
  background: rgba(9, 9, 11, 0.72);
  border: 1px solid var(--soft-line);
  font-size: 0.75rem;
  color: var(--text);
}
.product-content { padding: 0.9rem 0 0.2rem; }
.product-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.product-title {
  font-size: 1.45rem;
  line-height: 1.02;
  max-width: 12ch;
}
.product-format {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 0.2rem;
}
.product-artist,
.product-detail-line,
.footer-copy,
.info-block p,
.empty-state p,
.contact-status {
  color: var(--muted);
  line-height: 1.65;
}
.product-artist { margin: 0.55rem 0 0; font-size: 0.92rem; }
.product-detail-line { margin: 0.7rem 0 0; font-size: 0.9rem; }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.8rem;
}
.product-price {
  font-size: 1.18rem;
  font-weight: 700;
}
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 60px));
  gap: 0.45rem;
  margin-top: 0.95rem;
}
.gallery-thumb {
  appearance: none;
  border: 1px solid var(--soft-line);
  padding: 0;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  cursor: pointer;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.gallery-thumb.is-active { border-color: var(--accent); }
.product-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.82rem 1.12rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #101010;
  background: var(--accent);
}
.button-disabled {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border-color: var(--soft-line);
  pointer-events: none;
}

.site-footer {
  padding: 1.1rem 0 1.8rem;
}
.footer-minimal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-copy { margin: 0; font-size: 0.9rem; }
.footer-links {
  display: flex;
  gap: 1.2rem;
  color: var(--muted);
}

.info-page { padding: 2rem 0 4rem; }
.info-intro-minimal { margin-bottom: 1.6rem; }
.info-intro h1 { font-size: clamp(2rem, 4vw, 3rem); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.info-block {
  padding: 1rem 0;
  border-top: 1px solid var(--soft-line);
}
.info-block p { margin: 0.5rem 0 0; }

.empty-state {
  padding: 2rem;
  border: 1px solid var(--line);
}
.empty-state h3 { font-size: 1.25rem; }
.empty-state p { margin: 0.5rem 0 0; }

.contact-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(6, 6, 8, 0.68);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 40;
}
.contact-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.contact-pop {
  position: relative;
  width: min(100%, 760px);
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 10, 13, 0.92);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
  transform: translateY(8px);
  transition: transform 180ms ease;
}
.contact-overlay.is-open .contact-pop { transform: translateY(0); }
.contact-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.contact-close:hover { color: var(--text); }
.contact-kicker { margin: 0 0 0.6rem; }
.contact-pop h2 {
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  line-height: 1.02;
  margin-bottom: 0.95rem;
  max-width: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.contact-copy {
  min-height: 40px;
  padding: 0.72rem 1rem;
  margin-top: 0.35rem;
}
.contact-status {
  min-height: 1.1rem;
  margin: 0.7rem 0 0;
  font-size: 0.86rem;
}

@media (max-width: 720px) {
  .header-inner,
  .footer-minimal-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav,
  .footer-links {
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
  }
  .store-section,
  .info-page { padding-top: 1.5rem; }
}


.info-page-expanded { max-width: 980px; }
.info-lead { color: var(--muted); max-width: 56ch; line-height: 1.7; margin: 0.9rem 0 0; }
.info-grid-expanded { margin-bottom: 2.25rem; }
.faq-list { display: grid; gap: 1rem; }
.faq-item { padding-top: 1rem; border-top: 1px solid var(--soft-line); }
.faq-item p { margin: 0.5rem 0 0; color: var(--muted); line-height: 1.7; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}

.is-hidden { display: none !important; }

@media (max-width: 720px) {
  .contact-pop { width: 100%; padding: 1rem 1rem 1.1rem; }
  .contact-pop h2 { max-width: 100%; font-size: clamp(1.3rem, 8vw, 1.8rem); white-space: normal; overflow-wrap: anywhere; }
}
