.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 25px;
}

.auth-brand a {
  text-decoration: none;
  color: #111;
}

.auth-brand h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}

.auth-brand p {
  font-size: 14px;
  color: #777;
}

.auth-card {
  background: white;
  border-radius: 24px;
  padding: 35px 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.auth-card h2 {
  font-size: 24px;
  margin-bottom: 5px;
}

.auth-sub {
  color: #777;
  font-size: 14px;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #8b5e3c;
}

.password-wrap {
  position: relative;
}

.toggle-pw {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-option {
  border: 2px solid #eee;
  border-radius: 14px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.role-option span {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
}

.role-option strong {
  display: block;
  font-size: 15px;
}

.role-option p {
  font-size: 12px;
  color: #777;
  margin-top: 3px;
}

.role-option.selected {
  border-color: #8b5e3c;
  background: #fdf8f5;
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background: #0f0f0f;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-top: 5px;
}

.auth-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
  color: #aaa;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: #eee;
}

.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #777;
}

.auth-switch a {
  color: #8b5e3c;
  font-weight: 600;
  text-decoration: none;
}

.auth-error {
  background: #fdf0f0;
  border: 1px solid #f5c6c6;
  color: #c0392b;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
}

.auth-success {
  background: #f0fdf4;
  border: 1px solid #a7f3c0;
  color: #16a34a;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
}

.hidden {
  display: none !important;
}

.auth-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.auth-nav a {
  text-decoration: none;
  color: #111;
  font-size: 14px;
  font-weight: 500;
}

.auth-nav .nav-register {
  background: black;
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
}

.nav-user {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.logout-btn {
  background: none;
  border: 1px solid #ddd;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: #f5f5f5;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge.available { background: #d4edda; color: #155724; }
.badge.pending   { background: #fff3cd; color: #856404; }
.badge.sold      { background: #f8d7da; color: #721c24; }
.badge.paid      { background: #cce5ff; color: #004085; }
.badge.shipped   { background: #e2d9f3; color: #4a235a; }
.badge.delivered { background: #d4edda; color: #155724; }
.badge.cancelled { background: #f1f1f1; color: #666; }

.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  align-items: center;
}

.filter-bar input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 2px solid #eee;
  border-radius: 30px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s;
}

.filter-bar input:focus {
  border-color: #8b5e3c;
}

.filter-bar select {
  padding: 10px 16px;
  border: 2px solid #eee;
  border-radius: 30px;
  outline: none;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f0f0f;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  z-index: 99999;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.add-to-cart-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: black;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.add-to-cart-btn:hover {
  background: #333;
}

.card-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: capitalize;
  background: #f0ece6;
  color: #5a3a22;
}

.card-meta {
  font-size: 12px;
  color: #777;
  margin-top: 3px;
}

.loading-state,
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #777;
  font-size: 15px;
}

.listing-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.listing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.main-img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.thumb.active,
.thumb:hover {
  border-color: #8b5e3c;
}

.listing-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-category,
.badge-condition {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f0ece6;
  color: #5a3a22;
  text-transform: capitalize;
}

.listing-info h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.listing-price {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  margin-bottom: 20px;
}

.listing-meta {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
}

.meta-item span {
  display: block;
  font-size: 12px;
  color: #777;
}

.meta-item strong {
  font-size: 15px;
  text-transform: capitalize;
}

.listing-desc {
  margin-bottom: 20px;
}

.listing-desc h4 {
  font-size: 14px;
  color: #777;
  margin-bottom: 6px;
}

.listing-desc p {
  line-height: 1.7;
  color: #333;
}

.seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f5f2;
  padding: 15px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.seller-avatar {
  font-size: 32px;
  background: #eee;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.btn-primary {
  flex: 1;
  padding: 14px;
  background: black;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn-secondary {
  flex: 1;
  padding: 14px;
  background: white;
  color: black;
  border: 2px solid black;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-secondary:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.safety-note {
  font-size: 13px;
  color: #14532d;
  background: #e9fbee;
  padding: 12px 15px;
  border-radius: 10px;
  border-left: 3px solid #25D366;
}

.cart-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cart-main h1 {
  margin-bottom: 30px;
  font-size: 28px;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}

.cart-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 16px;
  margin-bottom: 12px;
}

.cart-item img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.cart-item-info p {
  font-size: 13px;
  color: #777;
}

.remove-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s;
  padding: 5px;
}

.remove-btn:hover {
  color: #e74c3c;
}

.cart-summary {
  background: white;
  border-radius: 20px;
  padding: 25px;
  position: sticky;
  top: 20px;
}

.cart-summary h2 {
  font-size: 18px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  padding-top: 15px;
  border-top: 2px solid #eee;
  margin-bottom: 20px;
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: #777;
  text-decoration: none;
}

@media (max-width: 768px) {
  .listing-grid { grid-template-columns: 1fr; gap: 25px; }
  .cart-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .filter-bar { flex-direction: column; }
  .filter-bar input, .filter-bar select { width: 100%; }
  .auth-nav .nav-register { display: none; }
}