/* =============================================
   IOARTS — Fanart Gallery  |  styles.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Mr+Dafoe&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0f0f0f;
  --text:      #a2a2a2;
  --text-light:#c8c8c8;
  --border:    #a2a2a2;
  --aside-w:   58px;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.ioarts-footer { position: relative; min-height: 532px; margin: 48px; padding: 44px; overflow: hidden; background: rgba(255,255,255,.2); border: 3px solid #a2a2a2; border-radius: 12px; }
.ioarts-footer__brand { color: #a2a2a2; font-size: clamp(120px,22vw,288px); font-weight: 700; line-height: 1; }
.ioarts-footer__social { position: absolute; top: 31px; right: 44px; display: flex; gap: 8px; }
.ioarts-footer__social a { display: grid; width: 48px; height: 48px; place-items: center; border: 3px solid #a2a2a2; border-radius: 6px; color: #a2a2a2; font-size: 22px; font-weight: 700; text-decoration: none; }
.ioarts-footer__links { position: absolute; bottom: 32px; left: 44px; display: flex; flex-wrap: wrap; gap: 28px; }
.ioarts-footer__links a, .ioarts-footer__copyright { color: #a2a2a2; font-size: 14.6px; font-weight: 600; text-decoration: none; }
.ioarts-footer__copyright { position: absolute; top: auto; right: 20px; bottom: 20px; writing-mode: vertical-rl; transform: none; }
@media (max-width: 640px) { .ioarts-footer { min-height: 300px; margin: 24px; padding: 24px; } .ioarts-footer__brand { font-size: clamp(64px,18vw,180px); } .ioarts-footer__social { top: 20px; right: 20px; } .ioarts-footer__social a { width: 40px; height: 40px; } .ioarts-footer__links { bottom: 20px; left: 24px; right: 24px; gap: 12px; } .ioarts-footer__copyright { display: none; } }

@media (max-width: 640px) {
  body { min-width: 0; overflow-x: hidden; }
  .container { width: min(100% - 2rem, 1180px); }
  .main-nav { width: 100%; }
  .legal-page, .contact-page { padding: 2rem 0 3rem; }
  .legal-header h1, .contact-header h1 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .legal-panel, .contact-panel { padding: 1.15rem; }
  .footer-inner { align-items: flex-start; }
  .ioarts-footer { margin: 24px; min-height: 300px; }
}

.aside {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--aside-w);
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 0 20px;
  gap: 24px;
  border-left: 1px solid rgba(162,162,162,0.15);
  background: var(--bg);
}

.aside-search {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text);
  flex-shrink: 0;
}

.aside-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 0;
  flex-shrink: 0;
}
.aside-menu span {
  display: block;
  width: 20px;
  height: 2.6px;
  background: var(--border);
  border-radius: 999px;
}
.aside-menu span.short  { width: 11px; }
.aside-menu span.shorter{ width: 17px; }

.aside-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 96px;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}
.aside-links a {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #74d5ff;
  white-space: nowrap;
}

.aside-logo-rotated {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  opacity: 0.65;
}

.page-wrap {
  margin-right: var(--aside-w);
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1040px;
  overflow: hidden;
  background: var(--bg);
}

.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.hero-carousel,
.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-loading {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text);
  font-size: 14px;
}

.hero-shirt {
  position: absolute;
  top: 50%;
  left: 66%;
  transform: translate(-50%, -56%);
  width: 68%;
  max-width: 980px;
  pointer-events: none;
  user-select: none;
}

.hero-text {
  position: absolute;
  top: 168px;
  left: 14%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: var(--text);
}

.hero-text h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.hero-text p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.625;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 54px;
  border: 3px solid var(--border);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  margin-top: 4px;
}
.view-btn:hover {
  background: rgba(162,162,162,0.08);
}

.hero-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 192px;
  backdrop-filter: blur(1px);
  background: rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
}

.hero-bar-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-bar-title {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.5;
}

.hero-bar-subtitle {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 7.2px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.5;
}

.hero-bar-desc {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-light);
  line-height: 1.45;
  max-width: 600px;
}

.hero-bar-sig {
  font-family: 'Mr Dafoe', cursive;
  font-size: 20px;
  color: rgba(187,187,187,0.9);
  line-height: 1.5;
  margin-top: 2px;
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 52px;
  height: 72px;
  place-items: center;
  border: 2px solid rgba(162,162,162,0.8);
  border-radius: 8px;
  background: rgba(15,15,15,0.28);
  color: var(--text);
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hero-arrow:hover {
  background: var(--border);
  color: var(--bg);
  border-color: var(--border);
}

.hero-arrow-next {
  right: 5%;
}

.filters {
  padding: 48px 48px 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.filter-btn {
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: lowercase;
  transition: background 0.15s, color 0.15s;
}

.filter-btn.active {
  background: var(--border);
  color: #000;
}

.filter-btn:hover:not(.active) {
  background: rgba(162,162,162,0.08);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 48px 48px;
}

.card {
  display: flex;
  flex-direction: column;
  border: none;
  background: transparent;
  cursor: pointer;
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-frame {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 14%;
  height: 55%;
  border: 3px solid var(--border);
  border-radius: 6px;
  pointer-events: none;
}

.card-body {
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.6px;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text);
  padding: 0 2px;
}
.card-tags .sep {
  opacity: 0.5;
}

.footer {
  background: var(--bg);
  padding: 48px;
}

.footer-overlay {
  position: relative;
  background: rgba(255,255,255,0.2);
  border: 3px solid var(--border);
  border-radius: 12px;
  padding: 44px 44px 36px;
  min-height: 532px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-wordmark {
  font-size: clamp(120px, 14vw, 288px);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -2px;
  user-select: none;
  pointer-events: none;
}

.footer-social {
  position: absolute;
  top: 31px;
  right: 44px;
  display: flex;
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-radius: 6px;
  transition: background 0.15s;
}
.social-link:hover {
  background: rgba(162,162,162,0.1);
}
.social-link .social-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.65;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14.8px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.24px;
  line-height: 1.3;
}
.footer-nav a:hover {
  color: var(--text-light);
}

.footer-copy {
  position: absolute;
  right: 20px;
  bottom: 36px;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  font-size: 14.8px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.24px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .aside { display: none; }
  .page-wrap { margin-right: 0; }

  .hero-text {
    left: 5%;
    max-width: 90%;
  }

  .hero-shirt {
    left: 68%;
    width: 92%;
    transform: translate(-50%, -52%);
  }

  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 32px 24px;
  }

  .filters {
    padding: 32px 24px 0;
  }

  .footer {
    padding: 24px;
  }
  .footer-overlay {
    padding: 32px 24px 28px;
    min-height: auto;
  }
  .footer-social {
    top: 20px;
    right: 24px;
  }
  .footer-copy {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    margin-top: 12px;
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .hero-bar {
    height: 240px;
  }

  .hero-arrow {
    width: 44px;
    height: 60px;
  }

  .hero-arrow-next {
    right: 5%;
  }
}

.product-detail-shell {
  min-height: 400px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.detail-media {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: var(--panel-alt);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.detail-gallery-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.detail-copy {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.detail-price {
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.detail-description {
  color: var(--muted);
  font-size: 1.05rem;
}

.detail-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

@media (max-width: 760px) {
  .hero-inner,
  .info-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner {
    display: block;
    text-align: center;
    padding: 1rem 0;
  }

  .main-nav {
    justify-content: center;
    margin-top: 0.75rem;
  }
}

/* Regular content pages */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid rgba(162, 162, 162, 0.2);
  background: #0f0f0f;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-mark {
  display: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.main-nav a {
  color: #a2a2a2;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.main-nav a:hover,
.back-link:hover,
.ioarts-footer__links a:hover {
  color: #74d5ff;
}

.contact-page,
.legal-page {
  flex: 1;
  padding: 72px 0 96px;
}

.contact-wrap,
.legal-wrap {
  max-width: 920px;
}

.contact-header,
.legal-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.eyebrow {
  margin-bottom: 14px;
  color: #74d5ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-header h1,
.legal-header h1 {
  margin-bottom: 14px;
  color: #a2a2a2;
  font-size: clamp(46px, 8vw, 92px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: .95;
  text-transform: uppercase;
}

.contact-header > p:last-child,
.legal-header > p:last-child {
  color: #c8c8c8;
  font-size: 16px;
  line-height: 1.6;
}

.contact-content,
.legal-content {
  display: grid;
  gap: 18px;
}

.contact-panel,
.legal-panel {
  padding: 28px 30px;
  border: 1px solid rgba(162, 162, 162, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.contact-panel h2,
.legal-panel h2 {
  margin-bottom: 14px;
  color: #a2a2a2;
  font-size: 20px;
  font-weight: 700;
}

.legal-panel h3 {
  margin: 24px 0 8px;
  color: #a2a2a2;
  font-size: 16px;
}

.contact-panel p,
.legal-panel p,
.legal-panel li {
  color: #c8c8c8;
  font-size: 15px;
  line-height: 1.75;
}

.legal-panel p + p,
.legal-panel p + ul,
.legal-panel ul + p {
  margin-top: 14px;
}

.legal-panel ul {
  padding-left: 22px;
}

.back-link {
  display: inline-flex;
  margin-top: 34px;
  padding: 13px 22px;
  border: 2px solid #a2a2a2;
  border-radius: 999px;
  color: #a2a2a2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.site-footer {
  display: none;
}

.page-shell > .ioarts-footer {
  width: auto;
  margin: 0 48px 48px;
}

@media (max-width: 700px) {
  .container { width: min(100% - 32px, 920px); }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 20px 0; }
  .main-nav { justify-content: flex-start; gap: 8px 14px; }
  .main-nav a { font-size: 10px; }
  .contact-page, .legal-page { padding: 42px 0 56px; }
  .contact-header, .legal-header { margin-bottom: 28px; }
  .contact-panel, .legal-panel { padding: 22px 20px; }
  .contact-panel p, .legal-panel p, .legal-panel li { font-size: 14px; line-height: 1.65; }
  .page-shell > .ioarts-footer { margin: 0 16px 16px; }
}
