/* ════════════════════════════════════════
   ADI Solutions - Downloads page  (v2.0)
   Uses the same variables as products.css
════════════════════════════════════════ */
.dl-page [hidden] { display: none !important; }
.dl-page p { text-align: left; }

.dl-wrap { padding: 40px 0 72px; }
@media (max-width: 767px) { .dl-wrap { padding: 26px 0 52px; } }

/* Hero eyebrow (category name above brand H1) */
.dl-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.dl-page p.dl-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 18px;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ── Tabs ── */
.dl-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}
.dl-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 50px;
  box-shadow: var(--shs);
  color: var(--navy);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.dl-tab i { font-size: 1.15rem; color: #e42d7e; transition: color .2s; }
.dl-tab:hover { color: #e42d7e; border-color: #e42d7e; text-decoration: none; }
.dl-tab.active { background: #e42d7e; border-color: #e42d7e; color: #fff; }
.dl-tab.active i { color: #fff; }
@media (max-width: 575px) {
  .dl-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .dl-tab { justify-content: center; padding: 10px 12px; font-size: .86rem; }
}

/* ── Search ── */
.dl-toolbar {
  max-width: 640px;
  margin: 0 auto 26px;
}
.dl-search { position: relative; }
.dl-search i {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: var(--muted);
  pointer-events: none;
}
.dl-search input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--bdr);
  border-radius: 50px;
  padding: 0 18px 0 42px;
  font-size: .9rem;
  color: var(--navy);
  background: #fff;
  box-shadow: var(--shs);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.dl-search input:focus {
  border-color: #e42d7e;
  box-shadow: 0 0 0 3px rgba(228, 45, 126, .12);
}

/* ── Landing: brand / set tiles ── */
.dl-sets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.dl-set {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  box-shadow: var(--shs);
  text-decoration: none;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.dl-set:hover {
  text-decoration: none;
  box-shadow: var(--shm);
  transform: translateY(-3px);
  border-color: rgba(228, 45, 126, .4);
}
.dl-set-logo {
  flex: 0 0 96px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
}
.dl-set-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dl-set-logo i { font-size: 2rem; color: #e42d7e; }
.dl-set-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-set-txt em {
  font-style: normal;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  color: #e42d7e;
  margin-bottom: 2px;
}
.dl-set-txt strong {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}
.dl-set-txt small { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.dl-set-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .82rem;
  font-weight: 700;
  color: #e42d7e;
}
@media (max-width: 575px) {
  .dl-sets { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .dl-set { padding: 16px; gap: 12px; }
  .dl-set-logo { flex-basis: 76px; height: 54px; }
  .dl-set-go { display: none; }
}

/* ── Set view: switcher chips ── */
.dl-setnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.dl-setnav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 15px;
  border-radius: 50px;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--bdr);
  background: #fff;
  color: var(--navy);
  transition: background .2s, color .2s, border-color .2s;
}
.dl-setnav a:hover { border-color: #e42d7e; color: #e42d7e; text-decoration: none; }
.dl-setnav a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.dl-setnav .dl-setnav-all { color: #e42d7e; border-color: transparent; background: transparent; padding-left: 4px; }
.dl-setnav .dl-setnav-all:hover { border-color: transparent; color: var(--navy); }

/* ── Set view: heading + inline search ── */
.dl-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--accent);
}
.dl-cat-title { display: flex; align-items: center; gap: 14px; }
.dl-cat-title img {
  height: 50px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: 8px;
  padding: 5px 10px;
}
.dl-cat-title span {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #e42d7e;
}
.dl-page .dl-cat-title h2 { font-size: 1.45rem; margin: 0; }
.dl-search-inline { flex: 0 1 320px; }
.dl-search-inline input { height: 42px; }
@media (max-width: 575px) {
  .dl-search-inline { flex-basis: 100%; }
}

.dl-page .dl-brand-h { font-size: 1.05rem; margin: 0 0 14px; }
.dl-brand + .dl-brand { margin-top: 26px; }

/* ── Grid & cards ── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shs);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.dl-card:hover {
  box-shadow: var(--shm);
  transform: translateY(-3px);
  border-color: rgba(228, 45, 126, .35);
}
.dl-thumb {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #eef2f8;
  overflow: hidden;
  border-bottom: 1px solid var(--bdr);
}
.dl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s;
}
.dl-card:hover .dl-thumb img { transform: scale(1.03); }
.dl-thumb-icon {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-thumb-icon .dl-ficon { width: 64px; height: 80px; }
.dl-thumb-video { aspect-ratio: 16 / 9; }
.dl-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(228, 45, 126, .92);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

.dl-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 14px;
}
.dl-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.dl-brand-tag {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #e42d7e;
}
.dl-model {
  font-size: .72rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--light);
  border: 1px solid var(--bdr);
  border-radius: 4px;
  padding: 2px 7px;
  word-break: break-word;
}
.dl-page .dl-title {
  font-family: 'Raleway', sans-serif;
  font-size: .98rem;
  line-height: 1.4;
  margin: 0 0 6px;
  color: var(--navy);
}
.dl-page .dl-desc {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--txt);
  margin: 0 0 10px;
}
.dl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.dl-tags span {
  font-size: .68rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(17, 64, 160, .07);
  border-radius: 20px;
  padding: 3px 9px;
}

/* Footer of card: PDF icon (left) + View (right) */
.dl-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--bdr);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dl-ficon { display: block; flex: 0 0 auto; }
.dl-yt { font-size: 1.8rem; color: #ff0000; }

/* ── Buttons ── */
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 18px;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.dl-btn i { font-size: 1rem; }
.dl-btn-solid { background: #e42d7e; color: #fff; border: 1px solid #e42d7e; }
.dl-btn-solid:hover { background: #c41f68; border-color: #c41f68; color: #fff; text-decoration: none; }
.dl-btn-line { background: #fff; color: var(--navy); border: 1px solid var(--bdr); }
.dl-btn-line:hover { border-color: #e42d7e; color: #e42d7e; text-decoration: none; }

.dl-page p.dl-result-count { margin: 14px 2px 0; font-size: .82rem; color: var(--muted); }
.dl-results > .dl-result-count:first-child { margin: 0 2px 12px; }

.dl-page p.dl-backcat { margin: 26px 0 0; text-align: center; }
.dl-backcat a { font-size: .88rem; font-weight: 600; color: #e42d7e; text-decoration: none; }
.dl-backcat a:hover { color: var(--navy); text-decoration: none; }

/* ── Empty / no result ── */
.dl-empty,
.dl-noresult {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shs);
  text-align: center;
  padding: 48px 24px;
}
.dl-noresult { margin-top: 20px; padding: 34px 24px; }
.dl-empty > i,
.dl-noresult > i { font-size: 3rem; color: #e42d7e; display: block; margin-bottom: 12px; }
.dl-page .dl-empty h2 { font-size: 1.2rem; margin-bottom: 8px; }
.dl-page .dl-empty p,
.dl-page .dl-noresult p { text-align: center; max-width: 520px; margin: 0 auto; font-size: .9rem; line-height: 1.7; color: var(--muted); }
.dl-empty-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dl-empty-btns .dl-btn,
.dl-help-btns .dl-btn { padding: 10px 18px; font-size: .88rem; }

/* ── Help strip ── */
.dl-help {
  margin-top: 44px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--r);
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.dl-page .dl-help h2 { color: #fff; font-size: 1.25rem; margin: 0 0 6px; }
.dl-page .dl-help p { color: rgba(255, 255, 255, .8); font-size: .88rem; margin: 0; max-width: 560px; }
.dl-help-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-help .dl-btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.dl-help .dl-btn-line:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ── Mobile ── */
@media (max-width: 575px) {
  .dl-grid { grid-template-columns: 1fr; gap: 14px; }

  /* compact horizontal cards */
  .dl-card { flex-direction: row; align-items: stretch; }
  .dl-card:hover { transform: none; }
  .dl-thumb {
    flex: 0 0 104px;
    aspect-ratio: auto;
    min-height: 140px;
    border-bottom: 0;
    border-right: 1px solid var(--bdr);
  }
  .dl-thumb-video { flex-basis: 128px; }
  .dl-card-body { padding: 12px 12px 10px; min-width: 0; }
  .dl-card-top { margin-bottom: 4px; }
  .dl-page .dl-title { font-size: .9rem; margin-bottom: 4px; }
  .dl-page .dl-desc { font-size: .78rem; line-height: 1.5; margin-bottom: 8px; }
  .dl-tags { margin-bottom: 8px; }
  .dl-foot { padding-top: 8px; }

  .dl-help { padding: 22px 18px; }
  .dl-help-btns { width: 100%; }
  .dl-help-btns .dl-btn { flex: 1; }
  .dl-setnav a { font-size: .8rem; padding: 6px 12px; }
}
