@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Jost:wght@300;400;500&display=swap');

:root {
  --cream: #F7F2EA;
  --cream-dark: #EFE7D8;
  --ink: #262220;
  --ink-soft: #59524B;
  --gold: #A9812F;
  --gold-soft: #C9A65C;
  --border: #E3D9C4;
  --danger: #B4442E;
  --success: #4C6B45;
  --whatsapp: #25D366;
  --radius: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.main-nav { display: flex; gap: 20px; font-size: 0.95rem; }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; gap: 8px; padding: 12px 16px; }
  .main-nav { gap: 14px; font-size: 0.85rem; flex-wrap: wrap; justify-content: center; }
  .logo { font-size: 1.35rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--gold); color: var(--ink); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; width: 100%; padding: 14px; font-size: 1rem; }
.btn-whatsapp:hover { opacity: 0.9; color: #fff; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 60px 20px 40px; }
.hero h1 { font-size: 2.8rem; }
.hero-tagline { color: var(--ink-soft); margin-bottom: 24px; }

/* ---------- Home hero (featured artwork) ---------- */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 64px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--gold);
  margin: 0 0 14px;
}
.home-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  text-wrap: balance;
  margin-bottom: 18px;
}
.home-hero-lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 34ch; margin: 0 0 28px; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero-figure { position: relative; display: block; min-width: 0; }
.home-hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(38, 34, 32, 0.45);
}
.home-hero-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(247, 242, 234, 0.94);
  padding: 10px 14px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.home-hero-caption strong { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; color: var(--ink); font-size: 1rem; }
.home-hero-figure:hover .home-hero-caption strong { color: var(--gold); }

@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 40px; }
  .home-hero-figure { order: -1; }
  .home-hero-lead { max-width: none; }
}

/* ---------- How to buy ---------- */
.how-to-buy { padding-top: 40px; padding-bottom: 24px; border-top: 1px solid var(--border); }
.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.steps li { display: flex; flex-direction: column; gap: 6px; }
.steps h3 { font-size: 1.15rem; margin: 0; }
.steps p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
}

.featured-section { padding-top: 40px; border-top: 1px solid var(--border); margin-top: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-link { color: var(--gold); font-size: 0.95rem; }
.about-section, .contact-section { padding-top: 8px; }
.about-section p { max-width: 65ch; }
.contact-list p { margin: 0 0 6px; }
.contact-label {
  display: inline-block;
  min-width: 96px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* ---------- Artwork grid ---------- */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin: 24px 0 48px;
}
.artwork-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.artwork-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: contain;
  background: var(--cream-dark);
  display: block;
}
.no-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--cream-dark);
}
.artwork-card-info { padding: 14px 16px; }
.artwork-card-info h3 { font-size: 1.05rem; margin-bottom: 2px; }
.artist { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 4px; }
.dimensions { color: var(--ink-soft); font-size: 0.85rem; margin: 0 0 4px; }
.price { color: var(--gold); font-weight: 600; margin: 0; }

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
}
.badge-large { position: static; display: inline-block; margin-bottom: 12px; }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.filter-bar select, .filter-bar input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: inherit;
}

/* ---------- Artwork detail ---------- */
.artwork-detail { padding: 32px 20px 60px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.main-image-frame {
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-image-frame img { max-width: 100%; max-height: 520px; object-fit: contain; }
.thumb-row { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb-btn {
  border: 2px solid transparent;
  background: #fff;
  border-radius: var(--radius);
  padding: 4px;
  cursor: pointer;
  text-align: center;
  flex: 0 0 auto;
}
.thumb-btn img { width: 72px; height: 72px; object-fit: cover; display: block; }
.thumb-btn span { font-size: 0.75rem; display: block; padding: 2px 0; color: var(--ink-soft); }
.thumb-btn.active { border-color: var(--gold); }

.detail-info h1 { font-size: 2rem; }
.spec-list { list-style: none; padding: 0; margin: 16px 0; }
.spec-list li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.detail-price { font-size: 1.6rem; color: var(--gold); font-weight: 600; margin: 16px 0; }
.sold-note { color: var(--danger); font-weight: 500; }
.fine-print { color: var(--ink-soft); font-size: 0.8rem; margin-top: 8px; }

.story-section { margin-top: 56px; border-top: 1px solid var(--border); padding-top: 32px; }
.story-text { max-width: 700px; }
.story-video { position: relative; max-width: 500px; margin-top: 20px; }
.story-video video { width: 100%; border-radius: var(--radius); background: #000; display: block; }
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}
.video-play-btn.hidden { display: none; }

.preview-banner {
  background: #fff3cd;
  border: 1px solid #e0c46c;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

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

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-top: 60px;
}

/* ---------- Admin ---------- */
.admin-body { background: var(--cream-dark); }
.login-box {
  max-width: 360px;
  margin: 80px auto;
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.login-box label { display: block; margin-bottom: 16px; font-size: 0.9rem; }
.login-box input { width: 100%; padding: 10px; margin-top: 4px; border: 1px solid var(--border); border-radius: var(--radius); }

.admin-topbar {
  background: var(--ink);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 14px 24px;
  font-size: 0.9rem;
}
.admin-topbar a { color: #fff; margin-left: 16px; }
.admin-topbar a:hover { color: var(--gold-soft); }

.admin-container { max-width: 1000px; margin: 0 auto; padding: 24px 20px 60px; }
.admin-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.9rem; }
.admin-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius); }
.admin-actions a, .admin-actions .link-btn { margin-right: 10px; font-size: 0.85rem; }

.tag { padding: 2px 8px; border-radius: var(--radius); font-size: 0.78rem; }
.tag-draft { background: #ddd; }
.tag-forsale { background: #d7ead0; color: var(--success); }
.tag-sold { background: #f0d7d0; color: var(--danger); }

.admin-form { background: #fff; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.admin-form fieldset { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; padding: 16px; }
.admin-form legend { font-weight: 500; padding: 0 8px; }
.admin-form label { display: block; margin-bottom: 14px; font-size: 0.9rem; }
.admin-form input[type=text], .admin-form input[type=number], .admin-form input[type=email],
.admin-form input[type=url], .admin-form select, .admin-form textarea {
  width: 100%; padding: 9px 10px; margin-top: 4px; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit;
}
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row label { flex: 1 1 160px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; }
.checkbox-label input { width: auto; }

.link-btn { background: none; border: none; color: var(--ink); cursor: pointer; text-decoration: underline; padding: 0; font-size: inherit; font-family: inherit; }
.link-btn.danger { color: var(--danger); }
.form-error { background: #f8d7da; color: #7a2530; padding: 10px 14px; border-radius: var(--radius); }
.form-success { background: #d7ead0; color: var(--success); padding: 10px 14px; border-radius: var(--radius); }
.detail-price-request { font-size: 1.15rem; font-family: 'Playfair Display', Georgia, serif; font-style: italic; }

/* ---------- Artwork page: image on top, details below ---------- */
.back-link { display: inline-block; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 16px; }
.detail-stack { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.detail-figure { position: relative; margin: 0; display: flex; justify-content: center; }
.detail-figure img { max-width: 100%; max-height: 78vh; object-fit: contain; display: block; }
.detail-stack .thumb-row { justify-content: center; margin-top: 0; }
.detail-stack > .fine-print { text-align: center; margin: 0; }
.detail-stack .detail-info { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 8px; }
.detail-stack .detail-info h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); text-wrap: balance; margin-bottom: 4px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 32px; margin: 18px 0 24px; }
.spec-grid > div { border-bottom: 1px solid var(--border); padding: 10px 0; min-width: 0; }
.spec-grid dt { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--ink-soft); }
.spec-grid dd { margin: 2px 0 0; font-size: 1rem; }
.spec-grid .detail-price { font-size: 1.15rem; margin: 0; }
.contact-cta { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.contact-cta p { margin: 0; color: var(--ink-soft); }
.btn-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.story-block { margin-top: 32px; }
.story-block h2 { font-size: 1.4rem; }
.detail-stack .story-video { margin: 16px auto 0; }
.artwork-card img { padding: 0; background: var(--cream); }

/* ---------- Showcase: framed alone + in interior ---------- */
.detail-stack { max-width: 1100px; }
.showcase { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.showcase-two { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.showcase .detail-figure { flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.showcase .detail-figure img { max-height: 70vh; width: 100%; height: auto; object-fit: contain; }
.detail-room img { border-radius: var(--radius); box-shadow: 0 18px 40px -26px rgba(38, 34, 32, 0.45); }
.detail-figure figcaption { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); }
.detail-stack .detail-info { max-width: 860px; width: 100%; margin-left: auto; margin-right: auto; }
@media (max-width: 800px) {
  .showcase-two { grid-template-columns: 1fr; }
}

/* ---------- Calmer display scale (paintings not oversized) ---------- */
.detail-stack { max-width: 960px; }
.showcase { max-width: 900px; margin: 0 auto; width: 100%; }
.showcase .detail-figure img { max-height: 420px; }
.showcase:not(.showcase-two) .detail-figure img { max-height: 460px; width: auto; max-width: 100%; }
.showcase-two .detail-room img { max-height: 380px; }
.artwork-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.artwork-card img { aspect-ratio: 1 / 1; object-fit: contain; padding: 14px; box-sizing: border-box; }
.home-hero-figure img { max-height: 420px; }
@media (max-width: 800px) {
  .showcase .detail-figure img, .showcase-two .detail-room img { max-height: 360px; }
}
.home-hero-figure img { aspect-ratio: auto; height: auto; max-height: 520px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.home-hero-figure { display: flex; justify-content: center; }

/* ================= Mobile usability ================= */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border-radius: var(--radius); }
.mobile-cta { display: none; }
img { max-width: 100%; }
@media (max-width: 800px) {
  /* sticky contact bar on artwork pages */
  .mobile-cta {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: rgba(247, 242, 234, 0.97); border-top: 1px solid var(--border);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    box-shadow: 0 -6px 18px rgba(38, 34, 32, 0.08);
  }
  .mobile-cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
  .mobile-cta-text strong { font-family: 'Playfair Display', Georgia, serif; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-cta-text span { font-size: 0.82rem; color: var(--gold); font-weight: 600; }
  .mobile-cta .btn-whatsapp { width: auto; padding: 12px 18px; flex: 0 0 auto; }
  body:has(.mobile-cta) .site-footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 1.7rem; }
  /* two-column collection on phones */
  .artwork-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 32px; }
  .artwork-card img { padding: 8px; }
  .artwork-card-info { padding: 10px 10px 12px; }
  .artwork-card-info h3 { font-size: 0.92rem; line-height: 1.25; }
  .dimensions { font-size: 0.78rem; }
  .price { font-size: 0.82rem; }
  .badge { top: 8px; right: 8px; font-size: 0.68rem; padding: 3px 7px; }
  /* filters: full width, finger-sized */
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter-bar select, .filter-bar .btn { grid-column: 1 / -1; }
  .filter-bar select, .filter-bar input, .filter-bar .btn { width: 100%; min-height: 46px; }
  /* home */
  .home-hero { padding-top: 20px; }
  .home-hero-actions { flex-direction: column; }
  .home-hero-actions .btn { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .home-hero-figure img { max-height: 360px; }
  .section-head { align-items: center; }
  /* artwork page */
  .artwork-detail { padding-top: 16px; }
  .showcase .detail-figure img, .showcase-two .detail-room img { max-height: 340px; }
  .thumb-btn img { width: 60px; height: 60px; }
  .spec-grid { margin: 12px 0 18px; }
  .contact-cta .btn-whatsapp { min-height: 50px; }
  /* bigger tap targets in header */
  .main-nav a { padding: 6px 2px; }
  /* admin */
  .admin-topbar { flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
  .admin-topbar a { margin-left: 0; margin-right: 14px; }
  .admin-container { padding: 16px 12px 48px; }
  .admin-header-row { flex-wrap: wrap; gap: 10px; }
  .admin-header-row h1 { font-size: 1.4rem; margin: 0; }
  .admin-table th, .admin-table td { padding: 8px; }
  .admin-table { min-width: 560px; }
  .admin-form { padding: 14px; }
  .admin-form fieldset { padding: 12px; }
  .form-row { flex-direction: column; gap: 0; }
  .login-box { margin: 40px 16px; padding: 24px; }
  .admin-form .btn, .login-box .btn { width: 100%; min-height: 48px; }
}
/* prevent iOS zoom-in when tapping form fields */
@media (max-width: 800px) {
  input, select, textarea { font-size: 16px !important; }
}
@media (max-width: 640px) { .form-row label { flex: 0 0 auto; } }

/* ================= Brand wordmark (RAFAELLI — the two L's form frame corners) ================= */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark {
  display: inline-flex; align-items: flex-end;
  font-family: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  font-weight: 300; font-size: 1.55rem; line-height: 1; letter-spacing: 0;
  color: var(--ink);
}
.wordmark > span { margin-right: 0.3em; }
.wordmark > span:last-child { margin-right: 0; }
.wordmark .wm-l { color: var(--gold); font-weight: 400; }
.wordmark .wm-l:not(.wm-l2) { margin-right: 0.11em; }
.wordmark .wm-l2 { display: inline-block; transform: rotate(180deg); }
.logo:hover .wordmark { color: var(--ink); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-logo .wordmark { font-size: 1.05rem; color: var(--ink-soft); }
/* language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--ink-soft); }
.lang-switch a { color: var(--ink-soft); padding: 4px 2px; }
.lang-switch a.active { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--gold); }
@media (max-width: 640px) {
  .wordmark { font-size: 1.3rem; }
  .lang-switch { margin-left: 0; }
}
/* frame-corner L's drawn exactly (cap-height boxes on the baseline) */
.wordmark { align-items: baseline; }
.wordmark > span.wm-corner { display: inline-block; width: 0.44em; height: 0.7em; box-sizing: border-box; border: 0 solid var(--gold); margin-right: 0.12em; }
.wordmark > span.wm-c1 { border-left-width: 0.085em; border-bottom-width: 0.085em; }
.wordmark > span.wm-c2 { border-top-width: 0.085em; border-right-width: 0.085em; margin-right: 0.3em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wordmark > span.visually-hidden { margin: 0; }

/* ---------- Loupe & full-screen viewer ---------- */
.zoom-lens {
  position: absolute; width: 190px; height: 190px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35), 0 0 0 1px var(--gold-soft);
  background-repeat: no-repeat; background-color: #fff;
  pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 5;
}
.zoom-lens.on { opacity: 1; }
#main-image { cursor: zoom-in; }
.zoom-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.zoom-open { display: inline-flex; align-items: center; gap: 8px; }
.zoom-hint { margin: 0; text-align: center; }
@media (hover: none), (pointer: coarse) { .zoom-hint { display: none; } #main-image { cursor: default; } }

.zoom-viewer { position: fixed; inset: 0; z-index: 1000; background: #0d0c0b; color: #f3eee6; }
.zoom-viewer[hidden] { display: none; }
.zv-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.zv-stage:active { cursor: grabbing; }
.zv-stage img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: center center; user-select: none; -webkit-user-select: none; will-change: transform; }
.zv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: linear-gradient(rgba(0,0,0,.6), transparent); pointer-events: none; }
.zv-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.05rem; }
.zv-top .zv-btn { pointer-events: auto; }
.zv-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(20,20,20,.65);
  color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.zv-btn:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.zv-controls { position: absolute; right: 16px; bottom: 56px; display: flex; flex-direction: column; gap: 10px; }
.zv-help { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; font-size: .8rem; color: rgba(243,238,230,.7); padding: 0 16px; }

/* ---------- Theme filter ---------- */
.theme-filter, .status-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.status-filter { margin: 10px 0 8px; }
.chip { display: inline-block; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff;
  font-size: .92rem; color: var(--ink); line-height: 1.2; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-sm { padding: 5px 12px; font-size: .8rem; color: var(--ink-soft); }
.chip-sm.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.theme-link { color: var(--gold); }
.theme-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .theme-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -16px; scrollbar-width: none; }
  .theme-filter::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
}

.artwork-card[hidden], .empty-state[hidden] { display: none !important; }

/* ---------- "Satılıb" — red, clearly visible ---------- */
:root { --sold: #C62828; }
.badge-sold {
  background: var(--sold); color: #fff; font-weight: 700; text-transform: uppercase;
  font-size: .82rem; letter-spacing: .08em; padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(198,40,40,.35);
}
.sold-label { color: var(--sold); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0; font-size: .95rem; }
.sold-note { color: var(--sold); font-weight: 600; }
@media (max-width: 600px) { .badge-sold { font-size: .7rem; padding: 4px 8px; } }

/* ---------- "Özəl kolleksiyada" ---------- */
.badge-private { background: var(--ink); color: #f3e6c8; font-weight: 600; font-size: .75rem; letter-spacing: .06em; padding: 6px 12px;
  border: 1px solid var(--gold-soft); }
.private-label { color: var(--gold); font-weight: 600; font-style: italic; margin: 0; font-size: .95rem; }
.private-note { color: var(--ink-soft); font-style: italic; }
@media (max-width: 600px) { .badge-private { font-size: .66rem; padding: 4px 7px; } }

/* ---------- Contact form ---------- */
.contact-form { max-width: 640px; margin: 28px 0 8px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.contact-form h3 { margin: 0 0 4px; font-size: 1.3rem; }
.form-intro { color: var(--ink-soft); margin: 0 0 16px; font-size: .95rem; }
.contact-form label { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: 12px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; font-size: 1rem;
  color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius); background: #fdfcf9; box-sizing: border-box; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169,129,47,.15); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; gap: 0; } .contact-form { padding: 18px; } }
.contact-form .btn { min-width: 160px; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 12px 0 0; font-size: .95rem; }
.form-status.ok { color: #2e7d32; font-weight: 600; }
.form-status.err { color: var(--sold, #C62828); }
.mail-link { display: inline-block; margin-top: 12px; color: var(--gold); font-size: .95rem; }
.mail-link:hover { text-decoration: underline; }

.footer-mail { margin: 4px 0; }
.footer-mail a { color: var(--gold); }
