:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f4efe8;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --accent: #b8982e;
  --accent-dark: #8a7120;
  --border: #e5e0d8;
  --green: #4a8f4f;
  --amber: #b8892e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

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

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* === HEADER === */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text);
}
nav ul {
  display: flex; gap: 36px; list-style: none;
  font-size: 13px; letter-spacing: 0.8px; text-transform: uppercase;
}
nav a {
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
nav a.active { color: var(--text); border-bottom-color: var(--accent); }

/* === HERO === */
.hero {
  text-align: center;
  padding: 100px 32px 80px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-alt) 100%);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text);
}
.hero p {
  font-size: 18px; color: var(--text-muted);
  max-width: 540px; margin: 0 auto;
  font-style: italic;
}

/* === SECTION === */
section.catalog-section {
  padding: 80px 0 60px;
}
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 40px;
  padding: 0 32px;
  max-width: 1280px; margin-left: auto; margin-right: auto;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 32px; font-weight: 400;
  letter-spacing: -0.3px;
}
.section-head .count {
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 1px; text-transform: uppercase;
}

/* === CAROUSEL === */
.carousel-wrap { position: relative; }
.carousel {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 32px 20px;
  scrollbar-width: none;
  max-width: 1280px; margin: 0 auto;
  scroll-behavior: smooth;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: all 0.2s;
  z-index: 10;
}
.carousel-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }

/* === PRODUCT CARD === */
.card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); }
.card.sold { cursor: default; }
.card-image {
  aspect-ratio: 3/4;
  background: var(--surface-alt);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s;
}
.card:hover .card-image img { transform: scale(1.04); }
.card-image.no-image {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-family: var(--serif); font-size: 14px; font-style: italic;
}
.card.sold .card-image img { filter: grayscale(0.6) brightness(0.85); }
.card-name {
  font-family: var(--serif);
  font-size: 17px; font-weight: 400;
  line-height: 1.3; letter-spacing: 0.1px;
}
.card-badge {
  display: inline-block;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  margin-top: 6px;
  color: var(--text-muted);
}
.card-badge.available { color: var(--green); }
.card-badge.coming-soon { color: var(--amber); }
.card-badge.sold { color: var(--text-muted); }
.card-badge::before {
  content: '';
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 8px; vertical-align: middle;
}

/* === EMPTY STATE === */
.empty {
  text-align: center; padding: 40px 32px;
  color: var(--text-muted);
  font-family: var(--serif); font-style: italic;
}

/* === PRODUCT PAGE === */
.product-page { padding: 60px 0 120px; }
.product-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}
.product-images .main-image {
  aspect-ratio: 3/4;
  background: var(--surface-alt);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.product-images .main-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.thumb {
  aspect-ratio: 1;
  background: var(--surface-alt);
  border-radius: 4px; overflow: hidden;
  cursor: pointer; opacity: 0.7; transition: opacity 0.2s;
  border: 2px solid transparent;
}
.thumb.active { opacity: 1; border-color: var(--accent); }
.thumb:hover { opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
  font-family: var(--serif);
  font-size: 40px; font-weight: 400; line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.status-line {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.status-line .card-badge {
  font-size: 12px; margin: 0;
}
.product-desc {
  font-size: 15px; line-height: 1.75;
  color: var(--text); white-space: pre-wrap;
  margin-bottom: 32px;
}
.product-desc-empty { color: var(--text-muted); font-style: italic; }

.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: white;
  padding: 14px 28px; border-radius: 4px;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  border: none; cursor: pointer;
  font-family: var(--sans);
}
.whatsapp-btn:hover { background: #20b958; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35); }
.whatsapp-btn svg { width: 20px; height: 20px; }

.sold-plaque {
  display: inline-block;
  padding: 14px 28px; border-radius: 4px;
  background: var(--surface-alt); color: var(--text-muted);
  font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid var(--border);
}

.trust-note {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; line-height: 1.6;
}

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 13px; letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

/* === CONTENT PAGES === */
.content-page {
  max-width: 720px; margin: 0 auto;
  padding: 80px 32px 120px;
}
.content-page h1 {
  font-family: var(--serif);
  font-size: 48px; font-weight: 400; letter-spacing: -0.5px;
  margin-bottom: 32px; text-align: center;
}
.content-page .lead {
  text-align: center;
  font-size: 17px; color: var(--text-muted);
  font-style: italic; margin-bottom: 48px;
}
.content-page h2 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 400;
  margin: 48px 0 16px;
}
.content-page p { margin-bottom: 18px; line-height: 1.75; }
.content-page .contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-top: 40px;
}
.content-page .contact-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 32px; border-radius: 4px;
  text-align: center;
}
.content-page .contact-card h3 {
  font-family: var(--serif); font-size: 20px; margin-bottom: 12px;
}
.content-page .contact-card a { color: var(--accent); font-weight: 500; }

/* === FOOTER === */
footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 60px 32px 40px;
  margin-top: 80px;
}
footer .container {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
  align-items: start;
}
footer .brand { margin-bottom: 12px; }
footer p, footer li { font-size: 13px; color: var(--text-muted); line-height: 1.8; list-style: none; }
footer ul { list-style: none; }
footer a:hover { color: var(--accent); }
footer .copyright {
  grid-column: 1 / -1;
  text-align: center; margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.5px;
}

/* === LOADER === */
.loader {
  text-align: center; padding: 80px;
  color: var(--text-muted); font-family: var(--serif); font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-info h1 { font-size: 32px; }
  header .container { padding: 16px 20px; }
  nav ul { gap: 20px; font-size: 12px; }
  .container { padding: 0 20px; }
  .section-head { padding: 0 20px; }
  .carousel { padding-left: 20px; padding-right: 20px; }
  .content-page .contact-grid { grid-template-columns: 1fr; }
  footer .container { grid-template-columns: 1fr; text-align: center; }
  .hero { padding: 60px 20px 50px; }
  .card { flex: 0 0 220px; }
}

@media (max-width: 520px) {
  .card { flex: 0 0 180px; }
  .carousel { gap: 14px; }
  nav ul { display: none; }
  .product-info h1 { font-size: 26px; }
}
