.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.preview-banner {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--frame);
  background: rgba(172, 55, 51, 0.08);
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  font-size: 0.95rem;
  color: var(--ink);
}

.dashboard-main {
  padding: 24px 0 40px;
}

.dashboard-heading {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  color: var(--ink);
  letter-spacing: -0.03em;
}

.dashboard-lede {
  margin: 0 0 24px;
  max-width: 52ch;
  font-size: 1.05rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 28px 32px;
  align-items: start;
}

.filters-panel {
  position: sticky;
  top: 18px;
  padding: 22px 20px;
  border: 1px solid var(--frame);
  background: rgba(245, 240, 232, 0.78);
  border-radius: 52% 48% 46% 54% / 48% 52% 48% 52%;
  box-shadow: 0 10px 28px rgba(44, 40, 37, 0.05);
}

.filters-panel h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: var(--ink);
}

.filter-field {
  margin-bottom: 14px;
}

.filter-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
}

.filter-field input,
.filter-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--frame);
  background: var(--egg);
  color: var(--ink);
  font: inherit;
  border-radius: 42% 58% 52% 48% / 50% 50% 50% 50%;
}

.filter-field input:focus,
.filter-field select:focus {
  outline: 2px solid var(--burgundy-glow);
  border-color: var(--burgundy);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-actions .btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 11px 16px;
  font-size: 0.95rem;
}

.listings-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.listings-count {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--frame);
  background: rgba(245, 240, 232, 0.85);
  border-radius: 54% 46% 48% 52% / 46% 54% 46% 54%;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(44, 40, 37, 0.03),
    0 12px 28px rgba(44, 40, 37, 0.06);
  transition:
    transform var(--duration-fast) var(--ease-bounce),
    box-shadow var(--duration-normal) var(--ease-smooth);
}

.listing-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 8px rgba(44, 40, 37, 0.05),
    0 18px 36px rgba(172, 55, 51, 0.08);
}

.listing-card[hidden] {
  display: none !important;
}

.listing-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--egg-deep);
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.listing-body h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--ink);
}

.listing-body h2 a {
  color: inherit;
  text-decoration: none;
}

.listing-body h2 a:hover {
  color: var(--burgundy);
}

.listing-preview {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  flex: 1;
}

.listing-meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
}

.seller-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--frame);
}

.seller-name {
  font-weight: 600;
  color: var(--ink);
}

.seller-rating {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--burgundy-deep);
  font-weight: 600;
}

.trusted-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px 24px;
  text-align: center;
  border: 1px dashed var(--frame);
  border-radius: 48% 52% 50% 50% / 50% 50% 50% 50%;
  color: var(--ink-soft);
}

.empty-state[hidden] {
  display: none;
}

.primary-nav a[aria-current="page"] {
  color: var(--burgundy);
  font-weight: 600;
}

@media (max-width: 860px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    width: 100%;
    display: none;
  }

  .primary-nav[data-open="true"] {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
  }
}
