/* sbvrtcnvrt.css — Daniel Pinci */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Reset ── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

/* ── Base ── */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #0a0a0a;
  background: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header & Navigation ── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.site-brand {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0a0a0a;
}

.site-brand:hover {
  color: #0a0a0a;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0a0a0a;
  transition: opacity 0.15s;
}

nav a:hover {
  opacity: 0.5;
}

.cart-link {
  font-weight: 500;
}

/* ── Main Content ── */

main {
  min-height: 70vh;
}

/* ── Hero Section ── */

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.hero-primary img {
  width: 100%;
  height: auto;
  display: block;
  background: #f0f0f0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-primary img.loaded {
  opacity: 1;
}

.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-secondary img {
  width: 100%;
  height: auto;
  display: block;
  background: #f0f0f0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-secondary img.loaded {
  opacity: 1;
}

.hero-text {
  padding: 4rem 0 2rem;
}

.hero-text h1 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1rem;
  color: #333;
}

.hero-text .cta {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0a0a0a;
  text-decoration: none;
  border-bottom: 1px solid #0a0a0a;
  padding-bottom: 2px;
}

.hero-text .cta:hover {
  opacity: 0.5;
}

/* ── Section Headers ── */

.section-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 2rem;
  padding-top: 3rem;
}

/* ── Artwork Grid ── */

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.artwork-card {
  text-decoration: none;
  color: inherit;
}

.artwork-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
  background: #f0f0f0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.artwork-card img.loaded {
  opacity: 1;
}

.artwork-card .artwork-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
}

.artwork-card:hover .artwork-title {
  color: #0a0a0a;
}

.artwork-card:hover img.loaded {
  opacity: 0.9;
}

/* ── Shop Grid ── */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.shop-card {
  text-decoration: none;
  color: inherit;
}

.shop-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
  background: #f0f0f0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shop-card img.loaded {
  opacity: 1;
}

.shop-card .shop-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  margin-bottom: 0.25rem;
}

.shop-card .shop-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #0a0a0a;
}

.shop-card:hover .shop-title {
  color: #0a0a0a;
}

/* ── Product Detail ── */

.product-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  padding: 3rem 0;
  align-items: start;
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
  background: #f0f0f0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-image img.loaded {
  opacity: 1;
}

.product-info {
  position: sticky;
  top: 80px;
}

.product-info h1 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #0a0a0a;
}

.product-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.product-meta span {
  display: block;
}

/* Size Selection */

.size-options {
  margin-bottom: 2rem;
}

.size-options .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.75rem;
}

.size-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
}

.size-option:first-of-type {
  border-top: 1px solid #e0e0e0;
}

.size-option input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid #0a0a0a;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.size-option input[type="radio"]:checked {
  background: #0a0a0a;
  box-shadow: inset 0 0 0 3px #fff;
}

.size-option .size-label {
  flex: 1;
}

.size-option .size-price {
  font-weight: 500;
}

/* Add to Cart Button */

.add-to-cart {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #0a0a0a;
  color: #ffffff;
  border: none;
  padding: 0.875rem 2rem;
  cursor: pointer;
  width: 100%;
  margin-bottom: 2rem;
  transition: background 0.15s;
}

.add-to-cart:hover {
  background: #333;
}

.add-to-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.sold-out {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
}

/* Product Details Section */

.product-details {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #666;
  line-height: 2;
}

.product-details .detail-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.product-details span {
  display: block;
}

/* ── Back Link ── */

.back-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #999;
  text-decoration: none;
  display: inline-block;
  padding: 1.5rem 0;
}

.back-link:hover {
  color: #0a0a0a;
}

/* ── Artwork Detail ── */

.artwork-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 0;
}

.artwork-detail img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 2rem;
  background: #f0f0f0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.artwork-detail img.loaded {
  opacity: 1;
}

.artwork-detail h1 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.artwork-detail .meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.artwork-detail .description {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #333;
  max-width: 600px;
  margin-bottom: 2rem;
}

.artwork-detail .buy-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0a0a0a;
  text-decoration: none;
  border-bottom: 1px solid #0a0a0a;
  padding-bottom: 2px;
}

.artwork-detail .buy-link:hover {
  opacity: 0.5;
}

/* ── About Page ── */

.about-content {
  max-width: 700px;
  padding: 3rem 0;
}

.about-content h1 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.about-content h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.25rem;
}

/* ── Contact Page ── */

.contact-content {
  max-width: 500px;
  padding: 3rem 0;
}

.contact-content h1 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.contact-content p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
}

.contact-content a {
  color: #0a0a0a;
  text-decoration: none;
  border-bottom: 1px solid #0a0a0a;
}

.contact-content a:hover {
  opacity: 0.5;
}

.contact-links {
  margin-top: 2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8125rem;
}

.contact-links a {
  display: block;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

/* ── Divider ── */

hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 3rem 0;
}

/* ── Footer ── */

footer {
  border-top: 1px solid #e0e0e0;
  padding: 2rem 0;
  margin-top: 4rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .copyright {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  color: #999;
  letter-spacing: 0.03em;
}

footer .social-links {
  display: flex;
  gap: 1.5rem;
}

footer .social-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  color: #999;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

footer .social-links a:hover {
  color: #0a0a0a;
}

/* ── Snipcart Overrides ── */

.snipcart-modal__container {
  font-family: 'IBM Plex Mono', monospace !important;
}

.snipcart-cart-header__title {
  font-family: 'IBM Plex Mono', monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

.snipcart-btn--highlight {
  background: #0a0a0a !important;
  font-family: 'IBM Plex Mono', monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* ── Page Title ── */

.page-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  padding: 2rem 0 1rem;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-secondary {
    flex-direction: row;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

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

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

  .product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-info {
    position: static;
  }

  nav {
    gap: 1.25rem;
  }

  nav a {
    font-size: 0.6875rem;
  }

  footer .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .artwork-grid {
    grid-template-columns: 1fr;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .hero-secondary {
    flex-direction: column;
  }

  header .container {
    flex-direction: column;
    height: auto;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }
}
