:root {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #6b7280;
  --accent: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --card-bg: #fff;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1200px;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

header h1 a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-bottom-color 0.15s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.card-info {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-info h2 {
  font-size: 1rem;
  font-weight: 500;
}

/* Badges */
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.badge.available { background: #dcfce7; color: var(--green); }
.badge.sold { background: #fef2f2; color: var(--red); }
.badge.sold.large { font-size: 1rem; padding: 0.5rem 1.25rem; display: inline-block; margin-bottom: 1rem; }
.badge.not-for-sale { background: #f3f4f6; color: #6b7280; }
.badge.not-for-sale.large { font-size: 1rem; padding: 0.5rem 1.25rem; display: inline-block; margin-bottom: 1rem; }

/* Item Detail */
.item-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

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

/* Carousel */
.carousel {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-slide {
  min-width: 100%;
  display: none;
}

.carousel-slide.active { display: block; }

.carousel-slide img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  background: #f3f4f6;
  cursor: zoom-in;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.carousel-btn:hover { background: rgba(255,255,255,1); }
.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }

/* Item Info */
.item-info h1 { font-size: 1.75rem; font-weight: 300; margin-bottom: 0.75rem; }

.price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.9; }

.paypal-btn {
  background: #0070ba;
  color: #fff;
  margin-bottom: 1.5rem;
}

.description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 1.5rem;
}

.description p + p { margin-top: 0.75rem; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 100;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

.item-info .meta { color: var(--muted, #666); font-size: 0.95rem; margin: 0.25rem 0; }

/* Tag cloud */
.lightbox .close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 101;
}

.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 101;
  transition: background 0.2s;
}

.lightbox .lb-prev:hover,
.lightbox .lb-next:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox .lb-prev { left: 1.5rem; }
.lightbox .lb-next { right: 1.5rem; }

.lightbox .lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  z-index: 101;
}

/* About page */
.about-page {
  max-width: 720px;
  margin: 0 auto;
}

.about-page h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.about-page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.about-content {
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1rem;
}

.about-content strong {
  font-weight: 600;
}

.about-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
  line-height: 1.7;
}
