/* Base */
.dst-container {
  --brand: #e6ba35;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
  
  

  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 4px 40px;
}
.dst-header { margin: 4px 0 16px; }
.dst-title { margin: 0; font-size: 24px; font-weight: 700; }

.dst-section { margin: 18px 0; }
.dst-label { font-weight: 600; margin-bottom: 8px; }
.dst-label small { color: var(--muted); font-weight: 500; }
.dst-readout { margin-top: 6px; color: var(--muted); }

/* Shape grid */
.dst-shapes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}
.dst-shape {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s ease;
}
.dst-shape img { width: 38px; height: 38px; object-fit: contain; }
.dst-shape span { font-size: 12px; }
.dst-shape:hover {
  background: #e0e0e0; /* light grey */
}
.dst-shape.active, .dst-shape[aria-pressed="true"] {
  border-color: #e6ba35;
  background: #e7f1fb;
}


/* noUiSlider overrides (flat minimal) */
.noUi-target {
  border: none;
  box-shadow: none;
  background: #e5e7eb;
  border-radius: 999px;
  height: 8px;
}
.noUi-connects {
  border-radius: 999px;
  cursor: pointer;
}

.noUi-connect {
  background: var(--brand) !important; /* blue accent for active range */
}
.noUi-horizontal .noUi-handle {
  width: 18px; height: 18px;
  border-radius: 50%;
  top: -5px;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: none;
}
.noUi-handle:before, .noUi-handle:after { display: none; }

/* Pips (labels) */
.noUi-pips-horizontal {
  padding-top: 12px;
}
.noUi-value {
  color: var(--muted);
  font-size: 12px;
}
.noUi-marker {
  background: #cbd5e1;
}
.noUi-marker-large {
  background: #94a3b8;
}

/* Actions */
.dst-actions { margin-top: 16px; }
.dst-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}
.dst-btn:hover { filter: brightness(0.95); }

/* Results */
.dst-results { margin-top: 18px; min-height: 60px; }
.dst-loading, .dst-error, .dst-empty { color: var(--muted); padding: 10px 0; }
.dst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.dst-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.dst-card-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; }
.dst-card-title { font-weight: 700; padding-bottom: 6px; }
.dst-price strong { color: #064e3b; }

/* Pagination */
/* Pagination - Blue background, white text */
.dst-pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.dst-pagination button {
  border: none;
  background: #e6ba35; /* Blue */
  color: #000;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.dst-pagination button:hover {
  background: #ddd;
}

.dst-pagination button.active {
  background: #e0e0e0;
  color: #000;
}

/* Hide the readouts under Color, Clarity, and Cut (underscore ids) */
#dst_color + .dst-readout,
#dst_clarity + .dst-readout,
#dst_cut + .dst-readout { visibility: hidden !important; }

#dst_cut {
  margin-bottom: 35px !important;
}


/* ---- Diamond Detail Layout ---- */
.dst-detail {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 20px;
  align-items: start;
  margin: 20px 0 40px;
}

.dst-detail-left .dst-detail-media {
  width: 100%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.dst-detail-left video {
  width: 100%;
  height: auto;
  display: block;
}
.dst-detail-image img {
  width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: block;
}

/* Right column table */
.dst-detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px; /* row spacing */
  font-size: 14px;
}
.dst-detail-table th {
  text-align: left;
  font-weight: 600;
  color: #374151;
  width: 220px;
  vertical-align: top;
  padding: 6px 10px 6px 0;
}
.dst-detail-table td {
  padding: 6px 0;
  color: #111827;
  word-break: break-word;
}

/* Buy Now button */
.dst-buy-btn {
  display: inline-block;
  background: #16a34a; /* green */
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.dst-buy-btn:hover { filter: brightness(0.95); }

/* Empty state */
.dst-detail-empty {
  color: #6b7280;
  padding: 16px 0;
}

/* Responsive */
@media (max-width: 900px) {
  .dst-detail {
    grid-template-columns: 1fr;
  }
  .dst-detail-table th { width: 160px; }
}
