@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #14110f;
  --ink-card: #221d18;
  --ink-line: #3a332b;
  --ivory: #f5f1e8;
  --ivory-dim: #c9c2b3;
  --brass: #b08d57;
  --brass-bright: #cfa96a;
  --brass-dim: #8c7a5e;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header ---------- */

header.site {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  padding: 26px 0;
}

header.site .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.3px;
  color: var(--ivory);
  text-decoration: none;
}

.wordmark em {
  font-style: italic;
  color: var(--brass-bright);
}

.collection-logo {
  width: 190px;
  height: 56px;
  overflow: hidden;
  display: block;
}

.collection-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.42);
}

.header-meta {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  font-size: 14px;
  color: var(--ivory-dim);
}

.menu-toggle,
.menu-backdrop {
  display: none;
}

.header-meta a {
  text-decoration: none;
  color: var(--ivory-dim);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.header-meta a:hover {
  color: var(--brass-bright);
  border-color: var(--brass-dim);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(720px, 100vh);
  display: flex;
  align-items: center;
  padding: 96px 0;
  border-bottom: 1px solid var(--ink-line);
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--ink);
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.9);
  transform: scale(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,17,15,0.88) 0%, rgba(20,17,15,0.58) 52%, rgba(20,17,15,0.32) 100%);
}

.hero-copy {
  max-width: 610px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  margin: 0 0 22px;
  max-width: 11ch;
}

.hero h1 i { font-style: italic; color: var(--brass-bright); }

.hero p {
  color: var(--ivory-dim);
  font-size: 17px;
  max-width: 40ch;
  margin: 0 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--brass);
  color: var(--ivory);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  background: transparent;
  font-family: var(--sans);
}

.btn:hover { background: var(--brass); color: var(--ink); }

.btn.solid {
  background: var(--brass);
  color: var(--ink);
}
.btn.solid:hover { background: var(--brass-bright); }

/* ---------- catalogue ---------- */

.catalogue { padding: 70px 0; }

.catalogue .section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.catalogue h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  margin: 0;
}

.catalogue .count {
  color: var(--brass-dim);
  font-size: 14px;
}

.catalogue-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 16px;
  border: 1px solid var(--ink-line);
  background: var(--ink-card);
}

.search-icon {
  color: var(--brass);
  font-size: 24px;
  line-height: 1;
  transform: rotate(-20deg);
}

.catalogue-search input {
  width: 100%;
  padding: 14px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ivory);
  font: 14px var(--sans);
}

.catalogue-search input::placeholder { color: var(--ivory-dim); }

.catalogue-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: var(--ink-card);
  border: 1px solid var(--ink-line);
}

.catalogue-controls-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.sort-control,
.price-filter-control {
  flex: 1 1 0;
  min-width: 0;
}

.sort-control select,
.price-filter-control select {
  width: 100%;
  min-width: 0;
  padding: 11px 34px 11px 14px;
  border: 1px solid var(--ink-line);
  border-radius: 24px;
  background: var(--ink);
  color: var(--ivory);
  font: 14px var(--sans);
  cursor: pointer;
}

.sort-control select:focus,
.price-filter-control select:focus { outline: 1px solid var(--brass); }

#listing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 0 24px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--ink-line);
}

.product-card:last-child { border-bottom: 1px solid var(--ink-line); }

.product-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-category {
  color: var(--ivory-dim);
  font-size: 14px;
}

.lot-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass-dim);
  font-size: 15px;
}

.lot-thumb {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #fff;
  border: 0;
}

.product-image-link { display: block; grid-column: 1 / -1; }

.lot-info .name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 18px 0 6px;
}

.lot-info .name a { text-decoration: none; }
.lot-info .name a:hover { color: var(--brass-bright); }

.lot-info .desc {
  color: var(--ivory-dim);
  font-size: 14px;
  max-width: 52ch;
}

.lot-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  grid-column: 1 / -1;
}

.lot-price {
  font-size: 20px;
  color: var(--brass-bright);
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.empty-state .serif {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ivory);
  margin-bottom: 8px;
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--ink-line);
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-grid h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 14px;
}

.footer-grid p {
  color: var(--ivory-dim);
  font-size: 14.5px;
  margin: 0 0 18px;
}

.map-frame {
  width: 100%;
  height: 220px;
  border: 1px solid var(--ink-line);
  filter: grayscale(0.4) invert(0.92) contrast(0.9);
}

.foot-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-line);
  font-size: 13px;
  color: var(--brass-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.social-float-stack {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whatsapp-float {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  text-decoration: none;
  background: #25d366;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.3);
}

.tiktok-float {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  text-decoration: none;
  background: #111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tiktok-float:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

.tiktok-float svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* ---------- product detail ---------- */

.product-header {
  position: relative;
  border-bottom: 1px solid var(--ink-line);
}

.product-detail { padding-top: 48px; padding-bottom: 90px; }

.back-link {
  display: inline-block;
  color: var(--ivory-dim);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 32px;
}

.back-link:hover { color: var(--brass-bright); }

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 64px;
  align-items: start;
}

.gallery-stage {
  position: relative;
  background: #fff;
  border: 1px solid var(--ink-line);
}

.gallery-stage img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }

.gallery-next {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink-line);
  background: rgba(245,241,232,0.92);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.gallery-next:hover { background: var(--brass-bright); }

.gallery-dots { display: flex; gap: 8px; margin-top: 14px; }
.gallery-dot { width: 42px; height: 5px; padding: 0; border: 0; background: var(--ink-line); cursor: pointer; }
.gallery-dot.active { background: var(--brass-bright); }

.product-copy { padding-top: 14px; }
.product-copy h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 14px 0 20px; }
.detail-price { color: var(--brass-bright); font-size: 24px; margin-bottom: 22px; }
.detail-summary, .detail-description { color: var(--ivory-dim); font-size: 15px; }
.detail-summary { margin-bottom: 24px; }
.detail-description { border-top: 1px solid var(--ink-line); padding-top: 24px; margin-bottom: 30px; }

/* ---------- admin ---------- */

.admin-shell { min-height: 100vh; }

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--ink-line);
  background: var(--ink-card);
  padding: 40px 36px;
}

.login-card .wordmark { display: block; margin-bottom: 6px; }

.login-card .sub {
  color: var(--ivory-dim);
  font-size: 14px;
  margin-bottom: 30px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  color: var(--ivory-dim);
  margin-bottom: 7px;
}

.field input, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  color: var(--ivory);
  padding: 12px 13px;
  font-family: var(--sans);
  font-size: 14.5px;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.field textarea { resize: vertical; min-height: 80px; }

.form-msg {
  font-size: 13.5px;
  margin-top: 14px;
  min-height: 18px;
}

.form-msg.error { color: #d98a7a; }
.form-msg.ok { color: var(--brass-bright); }

.form-actions { display: flex; align-items: center; gap: 10px; }

.admin-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-line);
}

.admin-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header .who {
  font-size: 13px;
  color: var(--ivory-dim);
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-body {
  padding: 44px 0 80px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

.panel {
  border: 1px solid var(--ink-line);
  background: var(--ink-card);
  padding: 28px;
}

.panel h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 22px;
}

.file-drop {
  border: 1px dashed var(--ink-line);
  padding: 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ivory-dim);
  cursor: pointer;
  margin-bottom: 18px;
}

.file-drop.has-img { border-style: solid; padding: 0; overflow: hidden; }
.file-drop.has-img img { width: 100%; height: 180px; object-fit: cover; }

.image-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.file-drop.compact { min-height: 86px; display: flex; align-items: center; justify-content: center; padding: 12px; margin-bottom: 18px; }
.file-drop.compact.has-img img { height: 110px; }

.admin-list h3 { margin-bottom: 18px; }

.admin-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--ink-line);
}

.admin-row:last-child { border-bottom: 1px solid var(--ink-line); }

.admin-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid var(--ink-line);
}

.admin-row .name { font-family: var(--serif); font-size: 16px; }
.admin-row .price { font-size: 13px; color: var(--brass-bright); }

.icon-btn {
  background: none;
  border: 1px solid var(--ink-line);
  color: var(--ivory-dim);
  font-size: 12.5px;
  padding: 7px 12px;
  cursor: pointer;
  font-family: var(--sans);
}

.icon-btn:hover { border-color: var(--brass); color: var(--brass-bright); }

.row-actions { display: flex; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-bg video { transform: none !important; }
}

@media (max-width: 760px) {
  .social-float-stack {
    right: 12px;
    bottom: 18px;
    gap: 10px;
  }

  .whatsapp-float,
  .tiktok-float {
    width: 48px;
    height: 48px;
  }

  .whatsapp-float svg,
  .tiktok-float svg {
    width: 22px;
    height: 22px;
  }

  header.site .wrap { grid-template-columns: 1fr auto; }
  .collection-logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: 170px; height: 50px; }
  .collection-logo img { transform: scale(1.32); }
  .wordmark { grid-column: 1; grid-row: 2; }
  .header-meta {
    position: fixed;
    z-index: 20;
    top: 0;
    right: 0;
    width: min(82vw, 320px);
    height: 100dvh;
    padding: 112px 30px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    background: var(--ink-card);
    border-left: 1px solid var(--ink-line);
    transform: translateX(100%);
    transition: transform 0.28s ease;
  }
  .header-meta.is-open { transform: translateX(0); }
  .header-meta a {
    padding: 18px 0;
    border-bottom: 1px solid var(--ink-line);
    font-family: var(--serif);
    font-size: 24px;
    color: var(--ivory);
  }
  .menu-toggle {
    grid-column: 2;
    grid-row: 2;
    width: 44px;
    height: 40px;
    padding: 9px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--ink-line);
    background: transparent;
    color: var(--ivory);
    cursor: pointer;
    z-index: 30;
  }
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
  .menu-backdrop {
    position: fixed;
    z-index: 15;
    inset: 0;
    display: block;
    background: rgba(20,17,15,0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }
  .menu-backdrop.is-visible { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .hero { min-height: 100svh; padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-body { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 34px; }
  .product-detail { padding-top: 30px; }
  .product-copy { padding-top: 0; }
  .image-pickers { grid-template-columns: 1fr; gap: 0; }
  .catalogue-tools { padding: 12px 14px; }
  .catalogue-controls-group {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .sort-control,
  .price-filter-control {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
  .sort-control select,
  .price-filter-control select {
    min-width: 0;
    width: 100%;
    font-size: 12px;
  }
  #listing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .product-card { grid-template-columns: 1fr; }
  .product-card { padding: 18px 0 24px; }
  .lot-thumb { height: 150px; }
  .product-category, .lot-num, .lot-info .desc { font-size: 11px; }
  .lot-info .name { font-size: 16px; line-height: 1.15; margin-top: 12px; }
  .lot-price { font-size: 15px; }
  .lot-side { align-items: flex-start; flex-direction: column; gap: 10px; }
  .lot-side .btn { padding: 9px 12px; font-size: 12px; }
}
