/* ===== Page layout ===== */
.page-main { padding: 40px 0 72px; min-height: 50vh; }
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: 36px; font-weight: 900; margin-bottom: 8px; }
.page-head p { color: #555; font-size: 15px; }
.page-grid { display: grid; gap: 24px; }
.page-two-col { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }

/* ===== Forms ===== */
.form-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.form-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.form-grid { display: grid; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 48px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}

.field textarea { height: auto; min-height: 96px; padding: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: linear-gradient(90deg, #ff6a5f, var(--red)); color: #fff;
  font-weight: 700; cursor: pointer; width: 100%;
}
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border: 1px solid #ddd; border-radius: 999px;
  background: #fff; color: #111; font-weight: 700; cursor: pointer;
}
.btn-link { background: none; border: 0; color: var(--red-2); font-weight: 700; cursor: pointer; }
.form-error {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px;
  background: #fff0f0; color: #c62828; font-size: 14px;
}
.form-tip { margin-top: 16px; font-size: 14px; color: #666; text-align: center; }
.form-tip a { color: var(--red-2); font-weight: 700; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 16px 0; }
.captcha-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: end; }
.captcha-img { height: 48px; border-radius: 8px; border: 1px solid #eee; object-fit: contain; background: #f8f8f8; }

/* ===== Auth split layout ===== */
.auth-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 48px 0 72px;
}
.auth-hero h1 { font-size: 42px; font-weight: 900; margin-bottom: 12px; }
.auth-hero p { color: #555; line-height: 1.8; }

/* ===== Cards & lists ===== */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card, .car-card, .list-card {
  border: 1px solid #eee; border-radius: 14px; overflow: hidden; background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover, .car-card:hover, .list-card:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: translateY(-2px);
}
.product-card img, .car-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f4f4f4; }
.product-card .body, .car-card .body, .list-card .body { padding: 14px; }
.product-card h3, .car-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.price { color: var(--red-2); font-weight: 800; font-size: 18px; }
.muted { color: #777; font-size: 13px; }

.side-nav { list-style: none; display: grid; gap: 4px; }
.side-nav a {
  display: block; padding: 12px 14px; border-radius: 10px; font-weight: 700; color: #333;
}
.side-nav a:hover, .side-nav a.active { background: #fff0f0; color: var(--red-2); }

.tabs-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.tabs-bar button {
  border: 1px solid #eee; background: #fff; border-radius: 999px;
  padding: 8px 16px; font-weight: 700; cursor: pointer;
}
.tabs-bar button.active { background: var(--red); color: #fff; border-color: var(--red); }

.empty-state, .loading-state {
  text-align: center; padding: 48px 20px; color: #666; background: #fafafa; border-radius: 12px;
}

.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.detail-gallery img { width: 100%; border-radius: 16px; background: #f4f4f4; }
.detail-info h1 { font-size: 28px; font-weight: 900; margin-bottom: 12px; }
.detail-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.table-list { width: 100%; border-collapse: collapse; }
.table-list th, .table-list td {
  border-bottom: 1px solid #eee; padding: 14px 10px; text-align: left; font-size: 14px;
}
.table-list th { font-weight: 700; color: #333; background: #fafafa; }
.status-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: #f0f0f0; font-size: 12px; font-weight: 700;
}

.rich-content { line-height: 1.9; color: #333; }
.rich-content img { max-width: 100%; height: auto; margin: 12px 0; }

.pc-bank-card {
  max-width: 640px;
  margin: 40px auto;
}
.pc-bank-card h1 {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 12px;
}
.pc-bank-summary {
  color: #555;
  line-height: 1.8;
  margin: 0 0 24px;
}
.pc-bank-amount-label {
  font-size: 13px;
  color: #777;
  margin-bottom: 6px;
}
.pc-bank-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--red-2, #d45a34);
  margin-bottom: 12px;
}
.pc-bank-notice {
  font-size: 14px;
  line-height: 1.8;
  color: #5e5147;
  margin: 16px 0 28px;
}
.pc-bank-actions {
  display: grid;
  gap: 12px;
}
.pc-bank-actions .btn-secondary {
  width: 100%;
  text-decoration: none;
}

.pc-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.pc-fav-btn svg {
  width: 17px;
  height: 16px;
  flex-shrink: 0;
}
.pc-fav-btn.is-on svg path {
  fill: currentColor;
}
.pc-fav-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .page-two-col, .auth-split, .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
