:root {
  --bg: #0f1115;
  --surface: #1a1d24;
  --text: #f2f2f2;
  --muted: #9aa0aa;
  --accent: #e8b13a;
  --accent-dark: #c8941f;
  --radius: 14px;
  --transition: 320ms cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: rgba(15,17,21,0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.cart-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-count {
  background: var(--accent);
  color: #1a1d24;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  transition: transform 200ms ease;
}

.cart-count.bump { transform: scale(1.3); }

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.hero { text-align: center; margin-bottom: 40px; }
.hero h1 { font-size: 2.2rem; margin-bottom: 8px; }
.hero p { color: var(--muted); }

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

.catalogue-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 600ms ease forwards;
  transition: transform var(--transition), box-shadow var(--transition);
}

.catalogue-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.catalogue-card .cover-wrap {
  overflow: hidden;
}

.catalogue-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 600ms ease;
}

.catalogue-card:hover img { transform: scale(1.08); }

.catalogue-card .card-body { padding: 16px 18px; }
.catalogue-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.catalogue-card p { margin: 0; color: var(--muted); font-size: 0.85rem; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--text); }

.catalogue-header { margin-bottom: 32px; }
.catalogue-header h1 { margin-bottom: 6px; }
.catalogue-header p { color: var(--muted); }
.catalogue-header .adobe-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}

.photo-grid {
  columns: 4 220px;
  column-gap: 16px;
}

.photo-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  opacity: 0;
  animation: popIn 450ms ease forwards;
  break-inside: avoid;
  margin-bottom: 16px;
  display: block;
  width: 100%;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 450ms ease, filter 450ms ease;
}

.photo-thumb:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.photo-thumb .thumb-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-size: 0.8rem;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.photo-thumb:hover .thumb-overlay { transform: translateY(0); }

@keyframes popIn {
  to { opacity: 1; transform: scale(1); }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.visible { opacity: 1; pointer-events: all; }

.lightbox img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.lightbox.visible img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-caption {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
}

.hidden { display: none; }

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, background var(--transition);
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--accent);
  color: #1a1d24;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-large { padding: 14px 32px; font-size: 1rem; width: 100%; }

.cart-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border-radius: 10px;
  padding: 12px;
  opacity: 0;
  transform: translateX(-10px);
  animation: slideIn 350ms ease forwards;
}

@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

.cart-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item .item-info { flex: 1; }
.cart-item .item-info h4 { margin: 0 0 4px; font-size: 0.95rem; }
.cart-item .item-info span { color: var(--muted); font-size: 0.85rem; }

.remove-btn {
  background: none;
  border: 1px solid #3a3f4a;
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.remove-btn:hover { border-color: #c0392b; color: #e74c3c; }

.cart-summary {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.cart-total { font-size: 1.3rem; margin-bottom: 16px; }

.checkout-status { margin-top: 12px; color: var(--muted); font-size: 0.85rem; min-height: 1.2em; }

.photo-thumb .quick-add {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: white;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition), transform 150ms ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-thumb:hover .quick-add { opacity: 1; }
.photo-thumb .quick-add:hover { background: var(--accent); color: #1a1d24; transform: scale(1.1); }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: white;
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-arrow:hover:not(:disabled) { background: rgba(255,255,255,0.15); }
.lb-arrow:disabled { opacity: 0.2; cursor: default; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

#breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

#breadcrumb a:hover { color: var(--text); }
#breadcrumb span { color: var(--text); }

#breadcrumb a + a::before,
#breadcrumb a + span::before { content: ' › '; color: var(--muted); }

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 24px;
  font-size: 0.8rem;
}

.empty-state { color: var(--muted); text-align: center; padding: 40px 0; }
