:root {
  --bg: #14110f;
  --panel: #1e1916;
  --ink: #f4efe8;
  --muted: #b6aa9c;
  --line: #3a312b;
  --accent: #d9773a;
  --ok: #6f9f7a;
  --danger: #c45c4a;
  --card: #241f1b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --font-display: "Segoe UI", "Helvetica Neue", sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 500px at 10% -10%, #3a2418 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #243038 0%, transparent 45%),
    var(--bg);
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding: 2rem 1.25rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
}

h1 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tabs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
  display: flex;
  gap: 0.5rem;
}

.tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.tab.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.empty {
  color: var(--muted);
  padding: 2rem 0;
}

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #5a4a40;
}

.thumb {
  aspect-ratio: 4 / 3;
  background: #2c2622 center/cover no-repeat;
  position: relative;
}

.thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: rgba(20, 17, 15, 0.82);
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  margin: 0;
  color: var(--accent);
  font-weight: 650;
}

.desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
}

.actions {
  display: flex;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.actions button {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}

.actions button.follow:hover { border-color: var(--ok); color: var(--ok); }
.actions button.remove:hover { border-color: var(--danger); color: var(--danger); }

@media (max-width: 640px) {
  .top { flex-direction: column; align-items: start; }
}
