:root {
  --navy: oklch(0.16 0.03 250);
  --navy-2: oklch(0.22 0.03 250);
  --navy-3: oklch(0.27 0.03 250);
  --gold: oklch(0.75 0.13 85);
  --gold-dim: oklch(0.6 0.1 85);
  --cream: oklch(0.96 0.01 85);
  --muted: oklch(0.68 0.02 250);
  --hairline: oklch(0.35 0.03 250);
  --serif: 'Playfair Display', Georgia, serif;
  --body: 'EB Garamond', Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--navy);
  font-family: var(--body);
  color: var(--cream);
}

::selection { background: var(--gold); color: var(--navy); }
a { color: var(--gold); text-decoration: none; }
a:hover { color: oklch(0.82 0.13 85); }
input::placeholder, textarea::placeholder { color: oklch(0.55 0.02 250); }

.page { min-height: 100vh; }

/* Navbar */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 48px;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  background: var(--navy);
  z-index: 10;
}
.logo-row { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.logo-img { height: 135px; width: auto; object-fit: contain; display: block; }
.nav-link {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  color: var(--cream);
}
.nav-home { justify-self: start; }
.nav-collection { justify-self: end; }
.nav-link.is-active { color: var(--gold); border-bottom-color: var(--gold); }

/* Hero */
.hero { text-align: center; padding: 110px 24px 90px; max-width: 860px; margin: 0 auto; }
.hero-eyebrow { font-size: 13px; letter-spacing: 0.22em; color: var(--gold); margin-bottom: 22px; }
.hero-headline { font-family: var(--serif); font-size: 54px; line-height: 1.15; font-weight: 600; margin-bottom: 26px; }
.hero-subhead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 620px; margin: 0 auto 40px; }
.hero-cta {
  display: inline-block; padding: 15px 38px; border: 1px solid var(--gold);
  color: var(--gold); font-size: 13px; letter-spacing: 0.14em; cursor: pointer; background: none;
}
.hero-cta:hover { color: oklch(0.82 0.13 85); border-color: oklch(0.82 0.13 85); }

/* Trust strip */
.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  max-width: 1100px; margin: 0 auto; padding: 0 48px 100px;
}
.trust-item { text-align: center; }
.trust-diamond { width: 8px; height: 8px; background: var(--gold); margin: 0 auto 18px; transform: rotate(45deg); }
.trust-title { font-family: var(--serif); font-size: 20px; margin-bottom: 10px; }
.trust-body { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* Section heading */
.section-heading-wrap { text-align: center; padding: 0 24px 50px; }
.section-eyebrow { font-size: 13px; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 14px; }
.section-heading { font-family: var(--serif); font-size: 34px; font-weight: 600; }

/* Grid + cards */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px; max-width: 1200px; margin: 0 auto; padding: 0 48px 100px;
}
.card { cursor: pointer; background: var(--navy-2); border: 1px solid var(--hairline); color: inherit; display: block; }
.card-image-wrap { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-3); }
.card-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-placeholder {
  width: 100%; height: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px; font-family: monospace; font-size: 12px; letter-spacing: 0.05em; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--navy-3), var(--navy-3) 10px, var(--navy-2) 10px, var(--navy-2) 20px);
}
.card-body { padding: 20px 22px 24px; }
.card-brand { font-size: 13px; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 6px; }
.card-model { font-family: var(--serif); font-size: 20px; margin-bottom: 12px; }
.card-price { font-size: 16px; color: var(--cream); }
.badge {
  position: absolute; top: 10px; right: 10px; padding: 4px 10px; font-size: 11px;
  letter-spacing: 0.08em; font-weight: 600; border-radius: 2px;
}
.badge.available { background: var(--gold); color: var(--navy); }
.badge.coming { background: oklch(0.78 0.09 230); color: var(--navy); }
.badge.pending { background: oklch(0.72 0.15 55); color: var(--navy); }
.badge.sold { background: oklch(0.5 0.19 25); color: oklch(0.98 0.005 25); box-shadow: 0 0 0 1px oklch(0.3 0.15 25 / 0.6); }

/* Story band */
.story-band { background: var(--navy-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 90px 48px; }
.story-band-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.story-heading { font-family: var(--serif); font-size: 28px; margin-bottom: 20px; }
.story-body { font-size: 18px; line-height: 1.7; color: var(--muted); }

.collection-wrap { padding: 60px 0 0; }

/* Detail page */
.detail-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 48px 100px; }
.back-link { font-size: 13px; letter-spacing: 0.1em; color: var(--gold); cursor: pointer; margin-bottom: 36px; display: inline-block; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.gallery-main { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--navy-2); border: 1px solid var(--hairline); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.zoom-hint {
  position: absolute; bottom: 12px; right: 12px; padding: 7px 12px; font-family: var(--body);
  font-size: 11px; letter-spacing: 0.12em; color: var(--cream); cursor: zoom-in;
  background: oklch(0.16 0.03 250 / 0.72); border: 1px solid var(--hairline); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.2s ease;
}
.gallery-main:hover .zoom-hint, .zoom-hint:focus-visible { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }

/* Zoom lightbox */
body.has-lightbox { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: oklch(0.12 0.02 250 / 0.97); display: flex; }
.lightbox[hidden] { display: none; }
.lightbox-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none; padding: 64px 16px 92px;
}
.lightbox-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; display: block;
  transform-origin: center center; will-change: transform; cursor: zoom-in; user-select: none; -webkit-user-drag: none;
}
.lightbox.is-zoomed .lightbox-stage img { cursor: grab; }
.lightbox.is-panning .lightbox-stage img { cursor: grabbing; }
.lightbox-bar {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: oklch(0.16 0.03 250 / 0.9); border: 1px solid var(--hairline);
}
.lightbox-level { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); min-width: 52px; text-align: center; }
.lightbox-btn, .lightbox-nav, .lightbox-close {
  background: none; border: 1px solid var(--hairline); color: var(--cream);
  font-family: var(--body); cursor: pointer; line-height: 1;
}
.lightbox-btn { min-width: 34px; height: 34px; font-size: 15px; letter-spacing: 0.08em; padding: 0 10px; }
.lightbox-btn:hover, .lightbox-nav:hover, .lightbox-close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-close { position: absolute; top: 18px; right: 20px; width: 40px; height: 40px; font-size: 24px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; font-size: 30px;
  background: oklch(0.16 0.03 250 / 0.8);
}
.lightbox-nav.is-prev { left: 18px; }
.lightbox-nav.is-next { right: 18px; }
.lightbox-count { position: absolute; top: 24px; left: 24px; font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
@media (max-width: 640px) {
  .lightbox-stage { padding: 56px 8px 84px; }
  .lightbox-nav { width: 38px; height: 54px; font-size: 24px; }
}
.gallery-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: monospace; font-size: 13px; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--navy-3), var(--navy-3) 12px, var(--navy-2) 12px, var(--navy-2) 24px);
}
.thumb-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumb { width: 68px; height: 68px; object-fit: cover; border: 1px solid var(--hairline); cursor: pointer; }
.thumb.is-active { border-color: var(--gold); }

.detail-title { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1.2; margin: 4px 0 10px; }
.detail-ref { font-size: 15px; color: var(--muted); }
.price-or-sold { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 14px 0 22px; color: var(--gold); }
.price-or-sold.is-coming { color: oklch(0.78 0.09 230); }
.price-or-sold.is-pending { color: oklch(0.72 0.15 55); }
.price-or-sold.is-sold { color: oklch(0.6 0.17 25); }

.spec-table { margin: 10px 0 30px; border-top: 1px solid var(--hairline); }
.spec-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.spec-label { font-size: 14px; letter-spacing: 0.06em; color: var(--muted); }
.spec-value { font-size: 15px; color: var(--cream); text-align: right; }
.story-body-detail { font-size: 16px; line-height: 1.7; color: var(--muted); margin-top: 4px; margin-bottom: 30px; }
.divider { height: 1px; background: var(--hairline); margin: 0 0 30px; }

.inquiry-confirm { font-size: 16px; line-height: 1.6; color: var(--gold); padding: 20px 0; }
.form { display: flex; flex-direction: column; gap: 14px; }

/* Forms */
.input, .textarea, select.input {
  background: var(--navy); border: 1px solid var(--hairline); color: var(--cream);
  padding: 13px 14px; font-family: var(--body); font-size: 15px; box-sizing: border-box; width: 100%;
}
.textarea { min-height: 100px; resize: vertical; }
.file-input { font-size: 14px; color: var(--muted); }
.submit-btn {
  padding: 14px; background: var(--gold); color: var(--navy); border: none;
  font-family: var(--body); font-size: 14px; letter-spacing: 0.1em; font-weight: 600; cursor: pointer;
}
.submit-btn:hover { background: oklch(0.82 0.13 85); }

/* Admin */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 60px 48px 100px; }
.lock-card { max-width: 420px; margin: 60px auto; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.hint-text { font-size: 13px; color: var(--muted); }
.unlock-btn {
  padding: 13px; border: 1px solid var(--gold); color: var(--gold); background: none;
  font-family: var(--body); font-size: 13px; letter-spacing: 0.12em; cursor: pointer; text-align: center;
}
.error-text { color: oklch(0.65 0.15 25); font-size: 14px; }

.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; gap: 14px; }
.btn-gold {
  padding: 13px 24px; background: var(--gold); color: var(--navy); font-size: 13px; letter-spacing: 0.1em;
  cursor: pointer; font-weight: 600; text-align: center; border: none; display: inline-block;
}
.btn-gold:hover { background: oklch(0.82 0.13 85); }
.btn-outline {
  padding: 13px 24px; border: 1px solid var(--hairline); color: var(--muted); font-size: 13px;
  letter-spacing: 0.1em; cursor: pointer; text-align: center; background: none; display: inline-block;
}

.form-panel { background: var(--navy-2); border: 1px solid var(--hairline); padding: 32px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.draft-thumb-wrap { position: relative; display: inline-block; }

/* Drag-to-reorder photo strip in the watch form */
.sortable-thumbs { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.sortable-thumbs .draft-thumb-wrap {
  padding: 6px; border: 1px solid transparent; cursor: grab; transition: border-color 0.15s ease;
}
.sortable-thumbs .draft-thumb-wrap:hover { border-color: var(--hairline); }
.sortable-thumbs .draft-thumb-wrap.is-dragging { opacity: 0.4; cursor: grabbing; }
.sortable-thumb { width: 92px; height: 92px; pointer-events: none; }
.draft-thumb-wrap.is-cover .sortable-thumb { border-color: var(--gold); }
.cover-flag {
  display: none; position: absolute; top: 0; left: 0; padding: 3px 7px;
  font-size: 10px; letter-spacing: 0.1em; background: var(--gold); color: var(--navy); font-weight: 600;
}
.draft-thumb-wrap.is-cover .cover-flag { display: block; }
.thumb-move { display: flex; justify-content: space-between; margin-top: 4px; }
.thumb-move-btn {
  width: 42px; height: 22px; background: none; border: 1px solid var(--hairline);
  color: var(--muted); font-family: var(--body); font-size: 14px; line-height: 1; cursor: pointer;
}
.thumb-move-btn:hover { border-color: var(--gold); color: var(--gold); }
.remove-thumb {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); border: 1px solid var(--hairline); color: var(--cream); display: flex;
  align-items: center; justify-content: center; font-size: 14px; cursor: pointer; text-decoration: none;
}

.admin-list { display: flex; flex-direction: column; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.admin-row { display: flex; align-items: center; gap: 20px; background: var(--navy); padding: 14px 18px; flex-wrap: wrap; }
.admin-row-thumb-wrap { width: 56px; height: 56px; flex-shrink: 0; }
.admin-row-thumb { width: 100%; height: 100%; object-fit: cover; }
.admin-row-thumb-placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(135deg, var(--navy-3), var(--navy-3) 6px, var(--navy-2) 6px, var(--navy-2) 12px);
}
.admin-row-info { flex: 1; min-width: 160px; }
.admin-row-actions { display: flex; gap: 10px; }
.row-action-btn {
  font-size: 12px; letter-spacing: 0.08em; color: var(--muted); cursor: pointer; padding: 6px 10px;
  border: 1px solid var(--hairline); background: none; text-decoration: none; display: inline-block;
}
.row-action-delete {
  font-size: 12px; letter-spacing: 0.08em; color: oklch(0.65 0.15 25); cursor: pointer; padding: 6px 10px;
  border: 1px solid oklch(0.4 0.1 25); background: none;
}

/* Footer */
.site-footer { text-align: center; padding: 50px 24px; border-top: 1px solid var(--hairline); }
.footer-brand { font-family: var(--serif); font-size: 18px; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 10px; }
.footer-line { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
