/* 납품현황 공개 페이지 (deliveries.html / delivery.html) — products/assets/style.css 토큰 사용 */

.dlv-head { padding: 112px 0 56px; border-bottom: 1px solid var(--hairline-soft); }
.dlv-head h1 { margin-top: 18px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; color: var(--white); }
.dlv-head p { margin-top: 18px; max-width: 34em; font-size: 16px; line-height: 1.75; }

.dlv-list { padding: 48px 0 112px; }
.dlv-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 32px;
}
.dlv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dlv-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--hairline); color: var(--ink);
  font-size: 13px; font-weight: 500;
  transition: color .16s var(--ease-enter), border-color .16s var(--ease-enter), background .16s var(--ease-enter);
}
.dlv-chip:hover { color: var(--white); border-color: rgba(247,248,245,.4); }
.dlv-chip[aria-current="true"] { background: var(--white); border-color: var(--white); color: var(--graphite); font-weight: 700; }
.dlv-count { font-size: 11.5px; color: var(--ink-dim); letter-spacing: .08em; }

.dlv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.dlv-card a { display: block; height: 100%; }
.dlv-thumb { aspect-ratio: 4 / 3; background: var(--panel); overflow: hidden; }
.dlv-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease-enter);
}
.dlv-card a:hover .dlv-thumb img { transform: scale(1.03); }
.dlv-body { padding: 18px 2px 0; }
.dlv-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; letter-spacing: .06em; color: var(--ink-dim); }
.dlv-title {
  margin-top: 10px; font-size: 17px; line-height: 1.45; color: var(--white); font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dlv-card a:hover .dlv-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.dlv-products { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dlv-product {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .04em;
  color: var(--steel); border: 1px solid var(--hairline); padding: 3px 8px;
}
.dlv-empty {
  grid-column: 1 / -1; padding: 96px 20px; text-align: center;
  color: var(--ink-dim); font-size: 15px; background: var(--panel);
}

.dlv-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 56px; }
.dlv-pagination:empty { display: none; }
.dlv-pagination a {
  min-width: 44px; height: 44px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline-soft); color: var(--ink);
  font-family: 'IBM Plex Mono', monospace; font-size: 13px;
}
.dlv-pagination a:hover { color: var(--white); border-color: var(--hairline); }
.dlv-pagination a[aria-current="page"] { background: var(--white); color: var(--graphite); border-color: var(--white); font-weight: 600; }

.dlv-cta { padding: 88px 0; background: var(--panel); }
.dlv-cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.dlv-cta h2 { margin-top: 16px; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; color: var(--white); }

/* ───── Detail ───── */
.dlv-detail { padding: 56px 0 112px; }
.dlv-detail-inner { max-width: 880px; margin: 0 auto; }
.dlv-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 13px; color: var(--ink-dim); transition: color .16s var(--ease-enter);
}
.dlv-back:hover { color: var(--white); }
.dlv-detail h1 { margin-top: 20px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.22; color: var(--white); }
.dlv-detail .dlv-meta { margin-top: 16px; font-size: 12px; }
.dlv-detail .dlv-products { margin-top: 16px; }

.dlv-gallery { margin-top: 40px; }
.dlv-gallery-main { background: var(--panel); aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dlv-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dlv-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.dlv-gallery-thumbs button {
  flex: 0 0 auto; width: 88px; height: 66px; padding: 0; border: 1px solid transparent;
  background: var(--panel); cursor: pointer; opacity: .55; transition: opacity .16s var(--ease-enter);
}
.dlv-gallery-thumbs button:hover { opacity: .85; }
.dlv-gallery-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--white); }
.dlv-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dlv-desc { margin-top: 40px; font-size: 16px; line-height: 1.9; color: var(--ink); white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.dlv-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hairline-soft); }

@media (max-width: 960px) {
  .dlv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dlv-head { padding: 72px 0 40px; }
  .dlv-grid { grid-template-columns: 1fr; }
  .dlv-cta-inner .btn-primary { width: 100%; }
  .dlv-gallery-main { aspect-ratio: 4 / 3; }
}
