:root {
  --gold: #a78043;
  --ink: #111;
  --paper: #f7f5ef;
  --line: #e9e6df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: white;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 5%;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 10;
}
.brand {
  font-family: Georgia, serif;
  letter-spacing: 3px;
  font-size: 28px;
  font-weight: 600;
  white-space: nowrap;
}
.brand span {
  font-weight: 400;
  color: var(--gold);
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-inline-start: auto;
  font-size: 14px;
}
nav .sell-nav {
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 12px 20px;
}
.quiet {
  border: 0;
  background: none;
  color: var(--gold);
  padding: 10px;
}
main {
  max-width: 1380px;
  margin: auto;
  min-height: 65vh;
  padding: 0 5% 60px;
}
.hero {
  padding: 70px 0 50px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
}
.hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(40px, 5.8vw, 74px);
  font-weight: 400;
  line-height: 1.1;
  margin: 20px 0;
}
.muted {
  color: #777;
  font-size: 14px;
  line-height: 1.7;
}
.hero p {
  max-width: 450px;
}
.hero-art {
  width: 340px;
  height: 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 150px;
  color: var(--gold);
  position: relative;
}
.hero-art:before {
  content: "";
  position: absolute;
  width: 200px;
  height: 220px;
  border: 1px solid var(--gold);
  transform: rotate(14deg);
}
.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.search-row input {
  flex: 1;
  min-width: 180px;
  background: var(--paper);
  border: 0;
}
.search-row select {
  max-width: 200px;
}
.categories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 28px;
}
.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 40px;
  padding: 12px 22px;
  white-space: nowrap;
  font-size: 13px;
}
.chip.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 24px;
}
.section-head h2 {
  font-size: 22px;
  font-weight: 500;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 20px;
}
.card {
  position: relative;
  min-width: 0;
}
.card-image {
  aspect-ratio: 3/4;
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
}
.card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.card h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 7px 0;
}
.card p {
  font-size: 12px;
  color: #777;
  margin: 10px 0 4px;
}
.price-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.save {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  border: 0;
  border-radius: 50%;
  background: white;
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: var(--gold);
  z-index: 1;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  max-width: 480px;
  margin: auto;
}
.empty-icon {
  font-family: Georgia, serif;
  font-size: 48px;
  color: var(--gold);
  background: var(--paper);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  margin: auto;
  display: grid;
  place-items: center;
}
.empty h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 28px;
}
.button,
button.primary {
  display: inline-block;
  text-align: center;
  background: var(--ink);
  color: white;
  border: 0;
  padding: 15px 24px;
  border-radius: 10px;
  font-weight: 600;
}
.button.gold {
  background: var(--gold);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.outline {
  background: white;
  border: 1px solid var(--line);
  padding: 14px 20px;
  border-radius: 10px;
}
.danger {
  color: #af3636;
}
form {
  display: grid;
  gap: 18px;
}
label {
  display: grid;
  gap: 9px;
  font-size: 14px;
}
input,
select,
textarea {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  width: 100%;
  color: var(--ink);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
}
.checkbox {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.6;
}
.row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.row > * {
  flex: 1;
}
.narrow {
  max-width: 680px;
  margin: 40px auto;
}
.narrow h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 40px;
}
.panel {
  padding: 26px;
  background: var(--paper);
  border-radius: 12px;
  margin: 20px 0;
}
.panel h2 {
  font-size: 18px;
  font-weight: 500;
}
.detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  margin-top: 44px;
}
.detail-image {
  width: 100%;
  max-height: 700px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 10px;
}
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.thumbs button {
  border: 1px solid var(--line);
  background: none;
  padding: 0;
}
.thumbs img {
  height: 85px;
  width: 65px;
  object-fit: cover;
}
.detail h1 {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  margin: 12px 0;
}
.detail .big-price {
  font-size: 25px;
  margin: 20px 0;
}
.attributes {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--paper);
  font-size: 13px;
  border-radius: 10px;
}
.attributes span {
  display: block;
  color: #777;
  font-size: 11px;
  margin-bottom: 8px;
}
.actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.status {
  display: inline-block;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 20px;
  background: #f1e9dc;
  color: #624b25;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.list-row img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}
.list-row .content {
  flex: 1;
}
.chat {
  max-width: 800px;
  margin: 30px auto;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--paper);
}
.chat-head img {
  width: 45px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
}
.messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 0;
  min-height: 300px;
}
.bubble {
  align-self: flex-start;
  max-width: 80%;
  padding: 16px 20px;
  background: var(--paper);
  border-radius: 18px;
  line-height: 1.6;
}
.bubble.mine {
  align-self: flex-end;
  background: var(--ink);
  color: white;
}
.bubble time {
  display: block;
  font-size: 10px;
  opacity: 0.6;
  margin-top: 7px;
}
.offer {
  border: 1px solid #d1bd9c;
  padding: 20px;
  border-radius: 12px;
  margin: 15px 0;
}
.offer h3 {
  font-size: 24px;
  margin: 10px 0;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 22px;
}
.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--paper);
  font-family: Georgia, serif;
  font-size: 40px;
  display: grid;
  place-items: center;
}
.settings {
  display: grid;
  gap: 12px;
  max-width: 580px;
}
.settings a,
.settings button {
  text-align: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: white;
}
dialog {
  max-width: 580px;
  width: calc(100% - 32px);
  border: 0;
  border-radius: 18px;
  padding: 32px;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
dialog h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  margin-top: 8px;
}
.close {
  position: absolute;
  top: 12px;
  inset-inline-end: 15px;
  border: 0;
  background: none;
  font-size: 25px;
}
.error {
  color: #b22626;
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  border-radius: 10px;
  padding: 15px 22px;
  background: var(--ink);
  color: white;
  display: none;
  max-width: 90vw;
  text-align: center;
}
footer {
  border-top: 1px solid var(--line);
  padding: 40px 5%;
  background: var(--paper);
  display: flex;
  gap: 24px;
  align-items: center;
}
footer p {
  font-size: 12px;
  color: #777;
  flex: 1;
}
footer div {
  display: flex;
  gap: 20px;
  font-size: 12px;
}
.legal {
  max-width: 780px;
  margin: 40px auto;
  padding: 24px;
}
.legal h1 {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 400;
}
.legal h2 {
  font-size: 20px;
  margin-top: 30px;
}
.legal p,
.legal li {
  line-height: 1.8;
  color: #555;
}
.legal a {
  color: var(--gold);
}
[dir="rtl"] .brand {
  direction: ltr;
}
[dir="rtl"] nav {
  margin-inline-start: auto;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  header {
    gap: 18px;
    padding: 18px 5%;
  }
  .brand {
    font-size: 24px;
  }
  nav {
    gap: 18px;
    font-size: 12px;
  }
  nav .sell-nav {
    padding: 10px;
  }
  .hero-art {
    width: 240px;
    height: 240px;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail {
    gap: 30px;
  }
  .attributes {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
  }
  header .quiet {
    margin-inline-start: auto;
  }
  nav {
    order: 3;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .hero {
    padding: 36px 0 25px;
  }
  .hero-art {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }
  .search-row select {
    flex: 1;
    max-width: none;
    font-size: 12px;
  }
  .detail {
    display: block;
    margin-top: 24px;
  }
  .detail-image {
    max-height: 480px;
  }
  .detail .info {
    padding-top: 22px;
  }
  .row {
    flex-wrap: wrap;
  }
  .row > * {
    min-width: 120px;
  }
  footer {
    display: block;
  }
  footer div {
    margin-top: 24px;
  }
  .narrow {
    margin: 25px auto;
  }
  .narrow h1 {
    font-size: 32px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .chip {
    padding: 10px 16px;
  }
}
