/* Listing detail page: /product/{id}, /patent/{id}, /avtor/{id}, /fr/{id}, /biz/{id} */
.dt {
  --dt-ink: #2B2A29;
  --dt-red: #E31E24;
  --dt-red-dark: #a11418;
  --dt-muted: #707070;
  --dt-line: #E4E4E4;
  --dt-mist: #F4F4F5;
  padding: 24px 0 56px;
  background: var(--dt-mist);
  color: var(--dt-ink);
}

.dt-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--dt-muted);
}
.dt-crumbs li + li::before { content: '/'; margin-right: 6px; color: #b5b5b5; }
.dt-crumbs a { color: var(--dt-ink); }
.dt-crumbs a:hover { color: var(--dt-red); }

.dt-panel {
  margin-bottom: 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--dt-line);
  border-radius: 6px;
}
@media (max-width: 575px) { .dt-panel { padding: 18px 16px; } }
.dt-panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

/* Hero: the mark itself */
.dt-hero {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
@media (max-width: 767px) { .dt-hero { grid-template-columns: 1fr; } }
.dt-specimen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--dt-line);
}
.dt-specimen > i::before,
.dt-specimen > i::after,
.dt-specimen::before,
.dt-specimen::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 0 solid var(--dt-red);
}
.dt-specimen::before { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.dt-specimen::after { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.dt-specimen > i::before { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.dt-specimen > i::after { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.dt-specimen img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dt-specimen-word { font-size: 22px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }

.dt-kind { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dt-muted); }
.dt-vip {
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--dt-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.dt-title {
  margin: 6px 0 8px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
@media (max-width: 575px) { .dt-title { font-size: 26px; } }
.dt-sub { margin: 0 0 14px; font-size: 15px; color: var(--dt-muted); }

.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dt-chips li {
  min-width: 34px;
  padding: 4px 8px;
  border: 1px solid var(--dt-ink);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.dt-chips.is-text li { font-weight: 500; text-align: left; }

/* Gallery */
.dt-gallery .carousel-item img { display: block; width: 100%; height: 340px; object-fit: contain; background: #fff; }
.dt-gallery .carousel-control-prev,
.dt-gallery .carousel-control-next {
  top: 50%;
  bottom: auto;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 1px solid var(--dt-line);
  border-radius: 50%;
  background: #fff;
  opacity: 1;
}
.dt-gallery .carousel-control-prev { left: 8px; }
.dt-gallery .carousel-control-next { right: 8px; }
.dt-gallery .carousel-control-prev:hover,
.dt-gallery .carousel-control-next:hover { border-color: var(--dt-ink); }
.dt-gallery .carousel-control-prev-icon,
.dt-gallery .carousel-control-next-icon { width: 16px; height: 16px; }
.dt-gallery .carousel-control-prev-icon,
.dt-gallery .carousel-control-next-icon { filter: invert(1); }
.dt-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dt-thumbs button {
  width: 72px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--dt-line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.dt-thumbs button.active { border-color: var(--dt-red); box-shadow: 0 0 0 1px var(--dt-red); }
.dt-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Facts */
.dt-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--dt-line);
}
.dt-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--dt-line);
}
.dt-facts > div:nth-child(odd) { padding-right: 20px; }
.dt-facts > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--dt-line); }
.dt-facts dt { font-size: 14px; font-weight: 400; color: var(--dt-muted); }
.dt-facts dd { margin: 0; font-size: 14px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.dt-facts dd.is-empty { font-weight: 400; color: #a5a5a5; }
@media (max-width: 767px) {
  .dt-facts { grid-template-columns: 1fr; }
  .dt-facts > div:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; }
}

/* Classes / categories accordion */
.dt-acc { border-top: 1px solid var(--dt-line); }
.dt-acc details { border-bottom: 1px solid var(--dt-line); }
.dt-acc summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}
.dt-acc summary::-webkit-details-marker { display: none; }
.dt-acc summary::after {
  content: '';
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--dt-ink);
  border-bottom: 2px solid var(--dt-ink);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.dt-acc details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.dt-acc summary:focus-visible { outline: 2px solid var(--dt-red); outline-offset: 2px; }
.dt-acc-num {
  min-width: 34px;
  padding: 3px 6px;
  border: 1px solid var(--dt-ink);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.dt-acc-count { font-size: 13px; font-weight: 400; color: var(--dt-muted); }
.dt-acc-body { max-height: 260px; overflow-y: auto; margin-bottom: 14px; padding: 0 8px 0 46px; font-size: 14px; line-height: 1.6; color: #4a4a4a; }
@media (max-width: 575px) { .dt-acc-body { padding-left: 0; } }

.dt-text { font-size: 15px; line-height: 1.65; }
.dt-text img { max-width: 100%; height: auto; }

/* Files */
.dt-files { margin: 0; padding: 0; list-style: none; }
.dt-files li + li { border-top: 1px solid var(--dt-line); }
.dt-files a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--dt-ink);
  font-size: 14px;
}
.dt-files a:hover { color: var(--dt-red); text-decoration: none; }
.dt-ext {
  flex-shrink: 0;
  width: 44px;
  padding: 6px 0;
  border-radius: 4px;
  background: var(--dt-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.dt-ext.is-pdf { background: var(--dt-red); }
.dt-files span.dt-file-name { overflow-wrap: anywhere; }

/* Side: price + seller */
.dt-side { position: sticky; top: 16px; }
.dt-price-label { font-size: 13px; color: var(--dt-muted); }
.dt-price {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.dt-price-row + .dt-price-row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--dt-line); }
.dt-price-row.is-secondary .dt-price { font-size: 22px; }
.dt-price small { font-size: 15px; font-weight: 400; color: var(--dt-muted); }

.dt-seller { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dt-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dt-ink);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.dt-seller-name { font-size: 18px; font-weight: 700; }
.dt-seller-role { font-size: 13px; color: var(--dt-muted); }
.dt-contacts { margin: 0 0 16px; padding: 0; list-style: none; }
.dt-contacts li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; }
.dt-contacts img { width: 18px; opacity: .8; }
.dt-contacts a { color: var(--dt-ink); overflow-wrap: anywhere; }
.dt-contacts a:hover { color: var(--dt-red); }
.dt-actions { display: grid; gap: 8px; }
a.dt-btn {
  display: flex;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 5px;
  background: var(--dt-red);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
a.dt-btn:hover { background: var(--dt-red-dark); color: #fff; text-decoration: none; }
a.dt-btn.is-outline { background: #fff; border: 1px solid var(--dt-ink); color: var(--dt-ink); }
a.dt-btn.is-outline:hover { background: var(--dt-ink); color: #fff; }
a.dt-btn:focus-visible { outline: 2px solid var(--dt-ink) !important; outline-offset: 2px; }
.dt-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--dt-muted); }

/* Related listings reuse the VIP card (vip.css) */
.dt-related { padding: 56px 0 64px; background: #fff; }
.dt-related .vip-card { background: #fff; }
.dt-related h2 { margin: 0 0 24px; font-size: 26px; font-weight: 700; text-align: center; }
.dt-related .vip-card-top { min-height: 0; }

@media (prefers-reduced-motion: reduce) { .dt-acc summary::after { transition: none; } }
