/* TonalPhoto - Fine Art Photography Portfolio + Print Shop */

/* --------------------------------------------------------------------------
   Design Tokens
   -------------------------------------------------------------------------- */

:root {
  --bg-primary: #0d0d0d;
  --bg-elevated: #1a1a1a;
  --bg-surface: #242424;
  --text-primary: #f0ece4;
  --text-secondary: #a09888;
  --text-muted: #6b6156;
  --accent: #a08060;
  --accent-hover: #b89470;
  --border: #2a2520;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --space-xs: clamp(4px, 0.5vw, 8px);
  --space-sm: clamp(8px, 1vw, 16px);
  --space-md: clamp(16px, 2vw, 32px);
  --space-lg: clamp(32px, 4vw, 64px);
  --space-xl: clamp(48px, 6vw, 96px);
  --space-2xl: clamp(64px, 8vw, 128px);
  --max-width: 1400px;
  --nav-height: 64px;
}

/* --------------------------------------------------------------------------
   Reset + Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
  color: var(--text-primary);
}

h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: 1em;
}

small, .caption {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background-color: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.nav-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.cart-count {
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--bg-primary);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

@media (max-width: 639px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-wrapper .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(20px);
  transform: scale(1.1);
  transition: opacity 0.6s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 0.3) 0%,
    rgba(13, 13, 13, 0.1) 40%,
    rgba(13, 13, 13, 0.4) 70%,
    rgba(13, 13, 13, 0.8) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-md);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}


/* --------------------------------------------------------------------------
   Section Titles
   -------------------------------------------------------------------------- */

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.section-title .subtitle {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Content Wrapper
   -------------------------------------------------------------------------- */

.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.page-section {
  padding: var(--space-2xl) 0;
}

.page-header {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-lg);
  text-align: center;
}

.page-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: var(--space-sm) auto 0;
}

/* --------------------------------------------------------------------------
   Gallery Grid
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-elevated);
  display: block;
  text-decoration: none;
}

.gallery-item .image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.2s ease;
  opacity: 0;
}

.gallery-item img.loaded {
  opacity: 1;
}

.gallery-item .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(20px);
  transform: scale(1.1);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.gallery-item:has(img.loaded) .placeholder {
  opacity: 0;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  z-index: 2;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay h3 {
  color: #f0f0f0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}

.gallery-item .overlay .image-count {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

@media (min-width: 640px) and (max-width: 1199px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 0;
  }

  .gallery-item .overlay {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Featured Row (homepage)
   -------------------------------------------------------------------------- */

.featured-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.featured-row .gallery-item {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.featured-row .gallery-item .image-wrapper,
.featured-row .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1199px) {
  .featured-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .featured-row {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Gallery Category Cards
   -------------------------------------------------------------------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.category-card {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
  display: block;
  background: var(--bg-elevated);
}

.category-card .image-wrapper {
  position: absolute;
  inset: 0;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.2s ease;
  opacity: 0;
}

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

.category-card .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(20px);
  transform: scale(1.1);
  transition: opacity 0.2s ease;
}

.category-card:has(img.loaded) .placeholder {
  opacity: 0;
}

.category-card:hover img {
  transform: scale(1.03);
}

.category-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

.category-card .card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: #fff;
  margin-bottom: 4px;
}

.category-card .card-count {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Product Detail
   -------------------------------------------------------------------------- */

.product-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-lg)) var(--space-md) var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-xl);
  align-items: start;
}

.product-image {
  position: relative;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
}

.product-image .image-wrapper {
  position: relative;
  width: 100%;
}

.product-image img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.product-image .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(20px);
  transform: scale(1.1);
  transition: opacity 0.2s ease;
}

.product-image:has(img.loaded) .placeholder {
  opacity: 0;
}

.product-info {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.product-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: var(--space-xs);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.product-meta span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.product-meta span + span::before {
  content: '';
}

.product-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.product-camera {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding: var(--space-sm);
  background: var(--bg-elevated);
  border-radius: 4px;
}

@media (max-width: 1199px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-info {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   Print Configurator
   -------------------------------------------------------------------------- */

.product-config {
  margin-top: var(--space-lg);
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: var(--space-md);
}

.config-step {
  margin-bottom: var(--space-md);
}

.config-step:last-child {
  margin-bottom: 0;
}

.config-step-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* Size pills */
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.size-btn {
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 100px;
}

.size-btn:hover {
  border-color: var(--accent);
}

.size-btn.selected {
  border-color: var(--accent);
  background: rgba(160, 128, 96, 0.15);
}

.size-btn .size-price {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.size-btn.selected .size-price {
  color: var(--accent);
}

/* Paper options */
.paper-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.paper-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.paper-option:hover {
  border-color: var(--accent);
}

.paper-option.selected {
  border-color: var(--accent);
  background: rgba(160, 128, 96, 0.15);
}

.paper-option .radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s ease;
}

.paper-option.selected .radio-dot {
  border-color: var(--accent);
}

.paper-option.selected .radio-dot::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.paper-option .paper-name {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.paper-option .paper-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Frame buttons */
.frame-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.frame-btn {
  padding: 10px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
}

.frame-btn:hover {
  border-color: var(--accent);
}

.frame-btn.selected {
  border-color: var(--accent);
  background: rgba(160, 128, 96, 0.15);
}

.frame-btn .frame-price {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Config summary + CTA */
.config-summary {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.config-price {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.btn-acquire {
  display: block;
  width: 100%;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-acquire:hover {
  background: var(--accent-hover);
}

.btn-acquire:active {
  transform: scale(0.98);
}

.btn-acquire:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.shipping-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.edition-info {
  text-align: center;
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: var(--space-xs);
}

/* --------------------------------------------------------------------------
   Shop / Prints Grid
   -------------------------------------------------------------------------- */

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-lg);
  padding: 0 var(--space-md);
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(160, 128, 96, 0.1);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.product-card {
  text-decoration: none;
  display: block;
}

.product-card .image-wrapper {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-elevated);
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.2s ease;
  opacity: 0;
}

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

.product-card .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(20px);
  transform: scale(1.1);
  transition: opacity 0.2s ease;
}

.product-card:has(img.loaded) .placeholder {
  opacity: 0;
}

.product-card:hover img {
  transform: scale(1.03);
}

.product-card .product-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-card .product-card-price {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (min-width: 640px) and (max-width: 1199px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --------------------------------------------------------------------------
   Cart
   -------------------------------------------------------------------------- */

.cart-page {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-md) var(--space-xl);
}

.cart-page h1 {
  margin-bottom: var(--space-lg);
}

.cart-empty {
  text-align: center;
  padding: var(--space-2xl) 0;
  color: var(--text-secondary);
}

.cart-empty p {
  margin-bottom: var(--space-md);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:first-of-type {
  border-top: 1px solid var(--border);
}

.cart-item-image {
  width: 100px;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-item-config {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cart-item-price {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.cart-item-remove:hover {
  color: #c44;
}

@media (max-width: 639px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: var(--space-sm);
  }

  .cart-item-price,
  .cart-item-remove {
    grid-column: 2;
  }

  .cart-item-image {
    width: 80px;
  }
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  margin-top: var(--space-sm);
}

.cart-total-label {
  font-size: 1rem;
  color: var(--text-secondary);
}

.cart-total-price {
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.btn-checkout {
  display: block;
  width: 100%;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
}

.btn-checkout:hover {
  background: var(--accent-hover);
}

.btn-continue {
  display: block;
  width: 100%;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.btn-continue:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */

.about-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-md) var(--space-xl);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.about-image {
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-text h1 {
  margin-bottom: var(--space-md);
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-section {
  margin-bottom: var(--space-2xl);
}

.about-section h2 {
  margin-bottom: var(--space-md);
}

.about-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
}

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

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */

.contact-page {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.contact-page h1 {
  margin-bottom: var(--space-md);
}

.contact-page p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--accent);
  margin: var(--space-lg) 0;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.contact-email:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-xl);
  align-items: start;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.footer-social a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  padding: var(--space-md) var(--space-md) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 639px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-lg);
  }
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   Loading States
   -------------------------------------------------------------------------- */

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-2xl) 0;
}

.loading-spinner::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Link Button
   -------------------------------------------------------------------------- */

.btn-link {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-link:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* --------------------------------------------------------------------------
   Latest Prints Row (homepage)
   -------------------------------------------------------------------------- */

.prints-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (max-width: 1199px) {
  .prints-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .prints-row {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}
