:root {
  --bg: #f7f3ec;
  --bg-alt: #efe7d8;
  --card: #ffffff;
  --card-hover: #fbf8f2;
  --border: rgba(30,22,8,0.09);
  --border-strong: rgba(30,22,8,0.18);
  --gold: #a8783a;
  --gold-bright: #c2903f;
  --text: #211c14;
  --text-muted: #6b6459;
  --text-faint: #9a9284;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

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

/* subtle grain/noise overlay for texture */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,10,13,0.75);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
}
.brand-name {
  font-family: 'Poppins', var(--sans);
  font-weight: 600;
  letter-spacing: 0;
}
.brand-mark {
  height: 30px;
  width: 30px;
  object-fit: contain;
  border-radius: 7px;
  display: block;
}
.nav-cta { display: inline-flex; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all .25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #16130a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(205,164,94,0.5); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-link {
  color: var(--text-muted);
  padding: 13px 6px;
}
.btn-link:hover { color: var(--gold-bright); }

/* Hero */
.hero {
  position: relative;
  padding: 44px 0 28px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(circle, rgba(205,164,94,0.16), transparent 65%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; max-width: 600px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 10px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.hero h1 em { color: var(--gold-bright); font-style: italic; }
.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 0 20px;
}
.hero-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold-bright);
  font-weight: 500;
}
.hero-stats span {
  display: block;
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* Catalog */
.catalog { padding: 20px 0 100px; position: relative; z-index: 2; }
.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.catalog-head h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  margin: 0;
}
.controls { display: flex; gap: 10px; flex-wrap: wrap; }
.controls input, .controls select {
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  transition: border-color .2s;
}
.controls input { min-width: 220px; }
.controls input:focus, .controls select:focus { border-color: var(--gold); }
.result-count {
  color: var(--text-faint);
  font-size: 13px;
  margin: 18px 0 30px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
  background: var(--card-hover);
}
.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #201d24, #131217);
  overflow: hidden;
  padding: 10px;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform .5s ease;
  image-rendering: auto;
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media .fallback-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 42px;
  opacity: 0.5;
}
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11,10,13,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  color: var(--gold-bright);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-price {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold-bright);
  font-weight: 500;
}
.card-cta {
  padding: 9px 16px;
  font-size: 13px;
}

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

/* About / steps */
.about { padding: 90px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.about h2 { font-family: var(--serif); font-size: 34px; font-weight: 500; margin: 8px 0 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 34px; }
.steps li { display: flex; gap: 20px; }
.step-num { font-family: var(--serif); font-size: 22px; color: var(--gold); flex-shrink: 0; }
.steps h3 { margin: 0 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* FAQ */
.faq { padding: 90px 0 110px; }
.faq h2 { font-family: var(--serif); font-size: 34px; font-weight: 500; margin: 8px 0 40px; }
.faq-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
details {
  background: var(--card);
  padding: 22px 26px;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::after {
  content: "+";
  color: var(--gold);
  font-size: 20px;
  transition: transform .2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 640px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 5, 7, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.7);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(11,10,13,0.8);
  color: #f3efe7;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold-bright); }
.modal-media {
  position: relative;
  background: linear-gradient(160deg, #201d24, #131217);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 280px;
}
.modal-media img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.modal-media .fallback-icon {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 48px;
  opacity: 0.5;
}
.modal-body {
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.modal-tag { align-self: flex-start; }
.modal-body h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0;
  line-height: 1.25;
}
.modal-description {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
  white-space: pre-line;
}
.modal-description p { margin: 0 0 1em; }
.modal-description.is-empty {
  font-style: italic;
  color: var(--text-faint);
}
.modal-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.modal-price { font-size: 26px; }

@media (max-width: 720px) {
  .modal { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-media { min-height: 220px; }
  .modal-body { padding: 28px 24px 28px; }
}

/* Footer */
.site-footer { padding: 40px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13px;
}
.footer-inner .brand { font-size: 16px; }

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 36px 0 24px; }
}

@media (max-width: 600px) {
  .brand { font-size: 17px; gap: 7px; }
  .brand-mark { height: 24px; width: 24px; }
}
