
/* ── PAGE HEADER ─────────────────────────────────── */
.dpt-header {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 40px 0 36px;
  position: relative;
  overflow: hidden;
}
.dpt-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.dpt-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), transparent);
}
.dpt-header > * { position: relative; z-index: 1; }

.dpt-bread {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 20px;
}
.dpt-bread a {
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .2s;
}
.dpt-bread a:hover { color: rgba(255,255,255,.7); }
.dpt-bread span:last-child { color: rgba(255,255,255,.6); }

.dpt-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.dpt-h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}
.dpt-h1-sub {
  font-size: .74rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .06em;
}

/* ── BODY ────────────────────────────────────────── */
.dpt-body {
  padding: 0 0 80px;
  background: var(--bg);
}

.dpt-list {
  border: 1px solid var(--rule);
  border-top: none;
}

/* ── CATEGORY ROW ────────────────────────────────── */
.dpt-row {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: background .15s;
}
.dpt-row:last-child { border-bottom: none; }
.dpt-row:hover { background: #fdfcfb; }

/* Row header */
.dpt-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--rule-lt);
  gap: 20px;
}
.dpt-row-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.dpt-row-n {
  font-family: "Instrument Serif", serif;
  font-size: 1.55rem;
  color: var(--rule);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
  transition: color .2s;
}
.dpt-row:hover .dpt-row-n { color: var(--red); }
.dpt-row-name {
  font-family: "Instrument Serif", serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}
.dpt-row-sub {
  font-size: .68rem;
  color: var(--ink-3);
  letter-spacing: .05em;
}
.dpt-row-link {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: letter-spacing .2s;
}
.dpt-row-link:hover { letter-spacing: .16em; }

/* ── THUMBNAIL GRID ──────────────────────────────── */
.dpt-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule-lt);
}

.dpt-thumb {
  display: block;
  text-decoration: none;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.dpt-thumb-img {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.dpt-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  display: block;
  transition: transform .35s, opacity .2s;
}

.dpt-thumb-hover {
  position: absolute;
  inset: 0;
  background: rgba(28,28,30,.87);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  opacity: 0;
  transition: opacity .22s;
  z-index: 2;
}
.dpt-thumb-hover span {
  font-size: .7rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 1.45;
}
.dpt-thumb:hover .dpt-thumb-img img {
  transform: scale(1.07);
  opacity: .45;
}
.dpt-thumb:hover .dpt-thumb-hover { opacity: 1; }

/* mobile name label — hidden on desktop */
.dpt-thumb-name { display: none; }

/* broken image fallback */
.dpt-thumb-img.no-img { background: var(--bg); }
.dpt-thumb-img.no-img img { display: none; }
.dpt-thumb-img.no-img::after {
  content: '—';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--rule);
}

/* ── DIRECT CATALOG ROW (no subcategories) ───────── */
.dpt-direct {
  border-top: 1px solid var(--rule-lt);
  background: var(--bg);
}
.dpt-direct-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: background .2s;
}
.dpt-direct-link:hover { background: #f5f3f0; }
.dpt-direct-img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dpt-direct-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.dpt-direct-link span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .05em;
}

/* ── ROW FOOTER ──────────────────────────────────── */
.dpt-row-foot {
  border-top: 1px solid var(--rule-lt);
  padding: 13px 28px;
  background: var(--bg);
}
.dpt-row-foot-link {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  transition: letter-spacing .2s;
}
.dpt-row-foot-link:hover { letter-spacing: .16em; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media(max-width: 1024px) {
  .dpt-thumbs { grid-template-columns: repeat(5, 1fr); }
}
@media(max-width: 768px) {
  .dpt-head-row { flex-direction: column; align-items: flex-start; }
  .dpt-row-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dpt-thumbs { grid-template-columns: repeat(4, 1fr); }
  .dpt-body { padding: 0 0 60px; }
}

/* ── MOBILE — row layout ─────────────────────────── */
@media(max-width: 640px) {
  .dpt-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: none;
    border-top: 1px solid var(--rule-lt);
  }
  .dpt-thumb {
    aspect-ratio: unset;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--rule-lt);
    background: var(--white);
    overflow: visible;
  }
  .dpt-thumb:active { background: var(--bg); }
  .dpt-thumb-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-right: 1px solid var(--rule-lt);
    overflow: hidden;
  }
  .dpt-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: none;
  }
  .dpt-thumb-hover { display: none; }
  .dpt-thumb-name {
    display: block;
    flex: 1;
    padding: 0 16px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.45;
  }
  .dpt-thumb:hover .dpt-thumb-img img {
    transform: none;
    opacity: 1;
  }
  .dpt-row-head { padding: 18px 20px 14px; }
  .dpt-row-foot { padding: 12px 20px; }
  .dpt-direct-link { padding: 14px 20px; }
}

@media(max-width: 480px) {
  .dpt-h1 { font-size: 1.6rem; }
  .dpt-thumb-img { width: 64px; height: 64px; }
  .dpt-thumb-name { font-size: .76rem; }
}