body[data-page="dashboard"] {
  background: #f3f6fb;
  color: #17212b;
}

body[data-page="dashboard"] main.container {
  width: 100%;
  max-width: none;
}

.marketplace {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px 54px;
}

.hero {
  position: relative;
  min-height: 420px;
  margin: 18px 0 0;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
}
.hero-bg {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0.85;
}

.hero {
  position: relative;
  height: 320px;
  margin: 18px 0 0;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.85;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 72px 56px 56px;
  color: #ffffff;
}

.hero-top {
  position: absolute;
  top: 22px;
  left: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.seller-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.seller-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.hero-kicker {
  width: fit-content;
  margin: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #dffdf7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 7px 11px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 650px;
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.58;
}

.search-box {
  width: min(100%, 560px);
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #17212b;
  font-size: 15px;
  padding: 0 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}

.search-box input:focus {
  border-color: #0f766e;
  outline: 4px solid rgba(15, 118, 110, 0.18);
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: -34px 18px 18px;
  position: relative;
  z-index: 2;
}

.dashboard-summary-card {
  min-height: 104px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  padding: 18px;
  display: grid;
  gap: 6px;
}

.dashboard-summary-card span {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-summary-card strong {
  color: #0f766e;
  font-size: 28px;
  line-height: 1.2;
}

.filter-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  padding: 16px;
  isolation: isolate;
  z-index: 50;
}

.filter-copy {
  display: grid;
  gap: 5px;
}

.filter-copy strong {
  color: #17212b;
  font-size: 16px;
}

.hot-label {
  width: fit-content;
  border-radius: 999px;
  background: #e7f3f1;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}

.dashboard-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-trigger-btn {
  min-height: 42px;
  border: 1px solid #0f766e;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  padding: 10px 16px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.filter-trigger-btn:hover {
  background: #0b5f59;
  border-color: #0b5f59;
  transform: translateY(-1px);
}

.filter-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 16px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: min(68vh, 520px);
  overflow-y: auto;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
  padding: 16px 14px;
  z-index: 40;
  grid-template-columns: 1fr;
  gap: 12px;
}

.filter-field-group {
  display: grid;
  gap: 6px;
}

.filter-field-group label {
  color: #475467;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-input-ctrl {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #ffffff;
  color: #17212b;
  font-size: 14px;
  padding: 9px 10px;
}

.filter-input-ctrl:focus {
  border-color: #0f766e;
  outline: 3px solid rgba(15, 118, 110, 0.13);
}

.dashboard-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 22px 0 12px;
}

.dashboard-section-head p {
  margin: 0 0 4px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-section-head h2 {
  margin: 0;
  color: #17212b;
  font-size: 22px;
  line-height: 1.25;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  border-color: #c4d2e1;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.13);
  transform: translateY(-3px);
}

.dashboard-clickable-detail {
  cursor: pointer;
}

.product-image-wrap {
  position: relative;
  background: #e8eef6;
  aspect-ratio: 16 / 10;
}

.product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-card > .product-image {
  height: 220px;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.product-card-company {
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name {
  min-height: 48px;
  margin: 0;
  color: #17212b;
  font-size: 18px;
  line-height: 1.34;
  font-weight: 900;
}

.dashboard-product-name {
  color: #17212b;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-specs span {
  min-width: 0;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fbfcfe;
  color: #17212b;
  font-size: 13px;
  font-weight: 800;
  padding: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-specs small {
  display: block;
  margin-bottom: 3px;
  color: #7a8696;
  font-size: 11px;
  font-weight: 800;
}

.product-desc {
  min-height: 42px;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border-top: 1px solid #edf1f5;
  padding-top: 12px;
}

.product-body > .product-price {
  color: #b42318;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.product-body > .product-review-count {
  justify-items: start;
  border-top: 1px solid #edf1f5;
  padding-top: 10px;
}

.product-card-bottom small {
  color: #7a8696;
  font-size: 12px;
  font-weight: 800;
}

.product-price {
  margin-top: 3px;
  color: #b42318;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.product-review-count {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  color: #667085;
  font-size: 12px;
}

.product-review-count strong {
  color: #d97706;
  font-size: 16px;
}

.product-status {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.status-active {
  background: #ecfdf3;
  color: #067647;
}

.status-draft {
  background: #fff7e6;
  color: #b54708;
}

.status-inactive {
  background: #fef3f2;
  color: #b42318;
}

.dashboard-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dashboard-card-action {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dashboard-card-action:hover {
  transform: translateY(-1px);
}

.dashboard-card-detail {
  background: #edf1f5;
  color: #344054;
}

.dashboard-card-detail:hover {
  background: #dbe3ec;
}

.dashboard-card-chat {
  background: #0f766e;
  color: #ffffff;
}

.dashboard-card-chat:hover {
  background: #0b5f59;
}

.loading {
  margin: 18px 0 0;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
  color: #0f766e;
  font-weight: 900;
  padding: 20px;
  text-align: center;
}

.hidden {
  display: none !important;
}

.dashboard-empty-state,
.dashboard-error-state {
  grid-column: 1 / -1;
  border: 1px dashed #c8d3df;
  border-radius: 8px;
  background: #ffffff;
  color: #667085;
  font-weight: 900;
  padding: 34px;
  text-align: center;
}

.dashboard-error-state {
  border-color: #fda29b;
  background: #fff7f6;
  color: #b42318;
}

.dashboard-detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999999 !important;
  overflow: auto;
  background: rgba(15, 23, 42, 0.72);
  padding: 48px 16px;
}

.dashboard-detail-dialog {
  width: min(940px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.dashboard-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #edf1f5;
  background: #fbfcfe;
  padding: 18px 20px;
}

.dashboard-detail-header h2 {
  margin: 0;
  color: #17212b;
  font-size: 20px;
  line-height: 1.3;
}

.dashboard-detail-close {
  width: 38px;
  height: 38px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #ffffff;
  color: #667085;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.dashboard-detail-close:hover {
  border-color: #b42318;
  color: #b42318;
}

.dashboard-detail-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.dashboard-modal-loading-box p {
  color: #0f766e;
  font-weight: 900;
  padding: 18px 0;
  text-align: center;
}

.dashboard-modal-main-content {
  display: none;
}

.dashboard-modal-main-content h3 {
  margin: 0 0 14px;
  color: #17212b;
  font-size: 22px;
  line-height: 1.3;
}

.dashboard-modal-main-content p {
  margin: 8px 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-company-info-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 14px;
}

.dashboard-company-copy {
  flex: 1;
}

.dashboard-company-copy p:first-child {
  color: #17212b;
  font-size: 15px;
}

.dashboard-company-logo-box {
  display: none;
  flex: 0 0 auto;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #ffffff;
  padding: 7px;
}

.dashboard-company-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
}

.dashboard-modal-price {
  color: #b42318;
  font-size: 16px;
  font-weight: 900;
}

.dashboard-modal-description {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fbfcfe;
  color: #475467;
  font-size: 14px;
  line-height: 1.55;
  padding: 12px;
  white-space: pre-line;
}

.dashboard-modal-gallery-section {
  display: none;
  padding: 0 20px 20px;
}

.dashboard-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px;
}

.dashboard-image-item {
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
}

.dashboard-image-item img {
  width: 100%;
  height: 108px;
  display: block;
  object-fit: cover;
}

.dashboard-detail-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #edf1f5;
  background: #fbfcfe;
  padding: 16px 20px;
}

.dashboard-detail-footer button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #17212b;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  padding: 10px 16px;
}

.dashboard-detail-footer button:hover {
  background: #0f172a;
}

@media (max-width: 980px) {
  .hero-content {
    padding: 74px 28px 42px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .dashboard-summary,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .marketplace {
    padding: 0 12px 40px;
  }

  .hero {
    min-height: 480px;
    margin-top: 12px;
  }

  .hero-bg {
    min-height: 480px;
  }

  .hero-content {
    padding: 86px 18px 28px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
    margin: 12px 0;
  }

  .filter-bar,
  .dashboard-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-dropdown-panel {
    position: static;
    width: 100%;
    margin-top: 12px;
    box-shadow: none;
  }

  .dashboard-toolbar-actions,
  .filter-trigger-btn {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card-actions,
  .product-card-bottom {
    grid-template-columns: 1fr;
  }

  .product-card-bottom {
    display: grid;
    align-items: stretch;
  }

  .product-review-count {
    justify-items: start;
  }

  .dashboard-company-info-box {
    display: grid;
  }

  .dashboard-detail-modal {
    padding: 18px 10px;
  }
}
