/* ThriftLux: black & gold luxury thrift */
:root {
  --bg: #faf7f2;
  --bg-card: #ffffff;
  --ink: #0d0d0d;
  --ink-soft: #4a4540;
  --ink-faint: #8a857f;
  --gold: #c9a961;
  --gold-deep: #a88847;
  --gold-light: #ead7a8;
  --line: #ece6dc;
  --shadow: 0 1px 2px rgba(13,13,13,0.04), 0 8px 24px rgba(13,13,13,0.06);
  --shadow-lg: 0 20px 60px rgba(13,13,13,0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,169,97,0.18);
  z-index: 200;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-logo {
  width: 52px; height: 52px; border-radius: 10px;
  border: 1px solid rgba(201,169,97,0.3);
  object-fit: cover;
  background: #000;
}
.footer-brand .brand-logo { width: 60px; height: 60px; }
.brand-text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}
.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  color: #f0e9d8;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: #0d0d0d !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-light); color: #0d0d0d !important; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; gap: 5px;
  z-index: 220;
}
.nav-toggle span {
  display: block;
  height: 2px; width: 24px;
  background: var(--gold-light);
  transition: 0.3s;
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(13,13,13,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateY(-100vh);
    transition: transform 0.3s;
    z-index: 210;
    visibility: hidden;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
  }
  .nav-links a { font-size: 20px; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1410 50%, #0d0d0d 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px 110px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,169,97,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201,169,97,0.10), transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-title em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-size: 18px;
  color: #d8d2c4;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--gold);
  color: #0d0d0d;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(201,169,97,0.5);
}
.btn-ghost:hover { background: rgba(201,169,97,0.1); border-color: var(--gold); }

/* ===== FILTERS ===== */
.filters {
  background: var(--bg);
  padding: 60px 0 24px;
}
.filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.filter-pills { display: flex; gap: 8px; }
.pill {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  color: var(--ink-soft);
  font-family: inherit;
}
.pill:hover { border-color: var(--gold); color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--gold-light); }
.filter-meta { color: var(--ink-faint); font-size: 14px; }

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding: 16px 0 80px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: zoom-in;
  background: #f0eae0;
}
.card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .card-img { transform: scale(1.04); }

.card.sold .card-img { filter: grayscale(0.4) brightness(0.92); }

.badge-sold {
  position: absolute;
  top: 14px; left: 14px;
  background: #0d0d0d;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--gold);
}

.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.card-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}
.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.card-price {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.card-price small { font-size: 12px; color: var(--ink-faint); font-weight: 400; font-family: var(--sans); }

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.btn-card {
  flex: 1;
  text-align: center;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  transition: 0.2s;
}
.btn-card:hover:not(:disabled) { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.btn-card.primary {
  background: var(--ink); color: var(--gold-light); border-color: var(--ink);
}
.btn-card.primary:hover:not(:disabled) { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-card:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== INFO ===== */
.info {
  background: #ffffff;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.info h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 18px;
}
.info p { color: var(--ink-soft); margin-bottom: 14px; }
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 14px 0 14px 50px;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600;
}
.steps li:last-child { border-bottom: none; }
.steps strong { color: var(--ink); }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ===== FOOTER ===== */
.footer {
  background: #0d0d0d;
  color: #d8d2c4;
  padding: 60px 0 40px;
}
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { color: var(--gold-light); font-family: var(--serif); font-size: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: end; }
.footer-links a { font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-fine { grid-column: 1 / -1; padding-top: 40px; margin-top: 20px; border-top: 1px solid rgba(201,169,97,0.15); font-size: 12px; color: var(--ink-faint); text-align: center; }
.footer-credit { color: var(--gold); transition: color 0.2s; }
.footer-credit:hover { color: var(--gold-light); }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: start; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}
.lightbox.open { display: flex; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: min(900px, 100%);
  max-height: 78vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.lightbox-caption {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 18px;
  text-align: center;
  max-width: 600px;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,169,97,0.4);
  color: var(--gold-light);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: 0.2s;
  line-height: 1;
}
.lightbox-close:hover { background: var(--gold); color: var(--ink); }

/* ===== ADMIN ===== */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.admin-header h1 { font-family: var(--serif); font-size: 36px; font-weight: 500; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-admin { padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; font-weight: 500; font-size: 14px; transition: 0.2s; }
.btn-admin:hover { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.btn-admin.primary { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.btn-admin.primary:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-admin.danger { color: #b00020; border-color: #f3c5cc; }
.btn-admin.danger:hover { background: #b00020; color: #fff; border-color: #b00020; }

.admin-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.admin-form h2 { font-family: var(--serif); font-size: 24px; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 14px;
  background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field-checkbox { display: flex; align-items: center; gap: 10px; }
.field-checkbox input { width: auto; }

.admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.admin-card-body { padding: 12px 14px; }
.admin-card-name { font-family: var(--serif); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.admin-card-price { color: var(--gold-deep); font-weight: 600; font-size: 14px; }
.admin-card-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.admin-card-actions button { flex: 1; padding: 7px 8px; font-size: 12px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; }
.admin-card-actions button:hover { background: var(--ink); color: var(--gold-light); border-color: var(--ink); }
.admin-card-actions .danger:hover { background: #b00020; color: #fff; border-color: #b00020; }
.admin-card-actions .sold-toggle.on { background: #0d0d0d; color: var(--gold); }

.login-wrap { max-width: 400px; margin: 100px auto; padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.login-wrap h1 { font-family: var(--serif); font-size: 32px; margin-bottom: 8px; text-align: center; }
.login-wrap p { color: var(--ink-faint); font-size: 14px; text-align: center; margin-bottom: 24px; }

.toast { position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: var(--gold-light); padding: 12px 20px; border-radius: 8px; box-shadow: var(--shadow-lg); transform: translateY(120%); transition: 0.3s; z-index: 1000; font-size: 14px; }
.toast.show { transform: translateY(0); }

/* ===== MOBILE POLISH ===== */
@media (max-width: 760px) {
  .nav-inner { padding: 10px 0; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-text { font-size: 19px; }

  .hero { padding: 56px 16px 64px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: 0.25em; margin-bottom: 18px; }
  .hero-title { font-size: clamp(40px, 11vw, 60px); margin-bottom: 18px; }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .hero-cta { gap: 10px; }
  .btn { padding: 13px 22px; font-size: 13px; }

  .filters { padding: 40px 0 16px; }
  .filters-bar { align-items: start; gap: 14px; }
  .section-title { font-size: clamp(32px, 9vw, 44px); }
  .filter-pills { width: 100%; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .pill { flex-shrink: 0; }

  .gallery {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 12px 0 50px;
  }
  .card-body { padding: 16px 18px 18px; gap: 8px; }
  .card-title { font-size: 19px; }
  .card-desc { font-size: 13.5px; }
  .card-price { font-size: 20px; }
  .card-actions { gap: 8px; padding-top: 12px; margin-top: 12px; }
  .btn-card { padding: 12px 10px; font-size: 13px; }

  .info { padding: 56px 0; }
  .info h2 { font-size: 28px; margin-bottom: 14px; }
  .steps li { padding: 12px 0 12px 46px; font-size: 14px; }

  .footer { padding: 40px 0 24px; }
  .footer-inner { gap: 26px; }
  .footer-brand .brand-logo { width: 50px; height: 50px; }
  .footer-fine { padding-top: 24px; margin-top: 12px; }

  .lightbox { padding: 16px; }
  .lightbox-img { max-height: 70vh; border-radius: 8px; }
  .lightbox-caption { font-size: 15px; }
  .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
}

/* Very small screens: keep hero text from feeling cramped */
@media (max-width: 380px) {
  .hero-title { font-size: 38px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .brand-text { font-size: 17px; }
}
