body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(180deg, #f6f2e8 0%, #e7dcc8 100%);
  color: #2b2116;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  margin-bottom: 24px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.filters label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.filters input,
.filters select,
.filters button {
  padding: 10px 12px;
  border: 1px solid #9c8665;
  border-radius: 8px;
  background: #fffaf1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.card,
.detail {
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(80, 54, 24, 0.18);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(74, 49, 18, 0.08);
}

.card img,
.detail img {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 12px;
}

.detail-page {
  display: grid;
  gap: 18px;
}

.back-link {
  color: #6a4e2b;
  text-decoration: none;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 20px;
}

.detail-side,
.detail-main {
  display: grid;
  gap: 16px;
}

.detail-card {
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(80, 54, 24, 0.16);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 38px rgba(74, 49, 18, 0.1);
}

.detail-card img {
  border-radius: 14px;
  border: 1px solid rgba(80, 54, 24, 0.14);
}

.detail-meta {
  color: #6a4e2b;
  font-weight: 700;
}

.detail-block {
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(80, 54, 24, 0.14);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(74, 49, 18, 0.08);
}

.detail-block h2 {
  margin-top: 0;
}

.detail-block h3 {
  margin-bottom: 8px;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4ead7;
  border: 1px solid rgba(109, 78, 40, 0.18);
  font-size: 14px;
}

.chip-type {
  background: #eadcc0;
}

.chip-source {
  background: #f1efe4;
}

.chip-history {
  background: #efe4d1;
}

.property-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.property-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(109, 78, 40, 0.2);
  padding-bottom: 6px;
}

.property-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.property-list span {
  color: #6a4e2b;
  text-transform: capitalize;
}

.property-list strong {
  text-align: right;
}

.enchant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.enchant-card {
  border: 1px solid rgba(109, 78, 40, 0.14);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #fff8eb 0%, #f3e7d1 100%);
}

.enchant-card h3 {
  margin-top: 0;
}

.source-group + .source-group {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}
