.d3light-scanners-grid,
.d3l-grid.d3light-scanners-grid,
.d3light-scanners-catalog {
  --d3l-blue: #462980;
  --d3l-blue-deep: #2e1b57;
  --d3l-cyan: #8186f1;
  --d3l-ink: #120b22;
  --d3l-muted: #64748b;
  --d3l-border: rgba(70, 41, 128, 0.14);
  --d3l-radius: 18px;
  color: var(--d3l-ink);
}

.d3l-catalog {
  box-sizing: border-box;
  margin: 28px 0;
  padding-right: 30px;
  padding-left: 30px;
}

.d3l-catalog-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 24px;
}

.d3l-catalog-eyebrow {
  margin: 0 0 12px;
}

.d3l-catalog-lead {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  font-weight: 600;
  color: var(--d3l-blue-deep);
}

.d3l-catalog-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--d3l-muted);
}

.d3l-catalog-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.d3l-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 16px 0 18px;
  border: 1px solid var(--d3l-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(70, 41, 128, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.d3l-search:focus-within {
  border-color: rgba(129, 134, 241, 0.45);
  box-shadow: 0 0 0 3px rgba(129, 134, 241, 0.15);
}

.d3l-search-icon {
  flex: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  pointer-events: none;
  color: var(--d3l-muted);
}

.d3l-search-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.d3light-scanners-catalog .d3l-search .d3l-search-input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  display: block;
  box-sizing: border-box;
  padding: 13px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  color: var(--d3l-ink);
  -webkit-appearance: none;
  appearance: none;
}

.d3light-scanners-catalog .d3l-search .d3l-search-input[type="search"]::-webkit-search-decoration,
.d3light-scanners-catalog .d3l-search .d3l-search-input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.d3light-scanners-catalog .d3l-search .d3l-search-input[type="search"]:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}

.d3l-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.d3l-filter-btn {
  border: 1px solid var(--d3l-border);
  background: #fff;
  color: var(--d3l-muted);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.d3l-filter-btn:hover {
  color: var(--d3l-blue-deep);
  border-color: rgba(129, 134, 241, 0.35);
}

.d3l-filter-btn.is-active {
  background: var(--d3l-blue);
  border-color: var(--d3l-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(70, 41, 128, 0.18);
}

.d3l-catalog-empty {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  text-align: center;
  background: #f8f7fc;
  border: 1px dashed var(--d3l-border);
  color: var(--d3l-muted);
  font-size: 14px;
}

.d3l-card.is-hidden {
  display: none !important;
}

.d3light-scanners-admin-notice {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
}

.d3light-scanners-error {
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.d3l-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}

@media (max-width: 1024px) {
  .d3l-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .d3l-card-media {
    height: 250px;
  }
}

@media (max-width: 640px) {
  .d3l-grid {
    grid-template-columns: 1fr;
  }

  .d3l-card {
    min-height: 0;
  }

  .d3l-card-media {
    height: 240px;
  }
}

.d3l-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 650px;
  border: 1px solid var(--d3l-border);
  border-radius: var(--d3l-radius);
  background: #fff;
  overflow: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.d3l-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  aspect-ratio: auto;
  background: linear-gradient(180deg, #f3f1fa 0%, #faf9fd 100%);
  border-bottom: 1px solid var(--d3l-border);
}

.d3l-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  display: block;
}

.d3l-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.d3l-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.d3l-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.d3l-badge-brand {
  background: rgba(70, 41, 128, 0.08);
  color: var(--d3l-blue);
}

.d3l-badge-type {
  background: rgba(129, 134, 241, 0.12);
  color: #4f55c7;
}

.d3l-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--d3l-ink);
}

.d3l-tagline {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--d3l-blue);
}

.d3l-desc {
  margin: 0;
  color: var(--d3l-muted);
  font-size: 14px;
}

.d3l-features {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
}

.d3l-features li {
  margin-bottom: 5px;
}

.d3l-card-actions {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  gap: 8px;
}

.d3l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.d3l-btn:hover {
  transform: translateY(-1px);
}

.d3l-btn-light {
  background: #fff;
  color: var(--d3l-blue-deep) !important;
  border: 1px solid var(--d3l-border);
}

.d3l-btn-light:hover {
  box-shadow: 0 6px 20px rgba(70, 41, 128, 0.1);
}

.d3l-btn-buy {
  background: var(--d3l-blue);
  color: #fff !important;
  border: 1px solid var(--d3l-blue);
}

.d3l-btn-buy:hover {
  box-shadow: 0 8px 20px rgba(70, 41, 128, 0.18);
}

.d3l-btn-accent {
  background: rgba(129, 134, 241, 0.12);
  color: var(--d3l-blue-deep) !important;
  border: 1px solid rgba(129, 134, 241, 0.22);
}

.d3l-btn-accent:hover {
  background: rgba(129, 134, 241, 0.18);
}


.d3l-stations {
  margin-top: 44px;
  padding-top: 42px;
  border-top: 1px solid var(--d3l-border);
}

/* Entire stations section kept in markup for easy reactivation. */
.d3l-stations {
  display: none;
}

.d3l-stations-header {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

/* Station header kept in markup for easy reactivation. */
.d3l-stations-header {
  display: none;
}

.d3l-stations-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 14px;
  border: 1px solid rgba(70, 41, 128, 0.18);
  border-radius: 999px;
  background: rgba(70, 41, 128, 0.05);
  color: var(--d3l-blue-deep);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.d3l-stations-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--d3l-cyan);
}

.d3l-stations-title {
  margin: 0 0 12px;
}

.d3l-stations-desc {
  margin: 0;
  color: var(--d3l-muted);
  font-size: 16px;
  line-height: 1.6;
}

.d3l-stations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
}

.d3l-station-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 650px;
  border: 1px solid var(--d3l-border);
  border-radius: var(--d3l-radius);
  background: #fff;
  overflow: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.d3l-station-media {
  position: relative;
  aspect-ratio: auto;
  background: linear-gradient(180deg, #f3f1fa 0%, #faf9fd 100%);
  border-bottom: 1px solid var(--d3l-border);
}

.d3l-station-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  display: block;
}

.d3l-station-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.d3l-station-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 23px;
  margin-bottom: 12px;
}

.d3l-station-badge {
  background: rgba(129, 134, 241, 0.12);
  color: #4f55c7;
}

.d3l-station-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--d3l-ink);
}

.d3l-station-tagline,
.d3l-station-desc-text {
  margin: 0;
  color: var(--d3l-muted);
  font-size: 14px;
  line-height: 1.5;
}

.d3l-station-desc-text {
  margin-top: 8px;
}

.d3l-station-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid var(--d3l-border);
  border-radius: 14px;
  background: #f8f7fc;
}

.d3l-station-features div {
  min-width: 0;
}

.d3l-station-features dt {
  margin: 0 0 4px;
  color: var(--d3l-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.d3l-station-features dd {
  margin: 0;
  color: var(--d3l-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.d3l-station-actions {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  gap: 8px;
  min-height: 63px;
}

.d3l-station-action-placeholder {
  display: block;
  min-height: 45px;
}

@media (max-width: 1024px) {
  .d3l-stations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .d3l-stations {
    margin-top: 34px;
    padding-top: 34px;
  }

  .d3l-stations-grid,
  .d3l-station-features {
    grid-template-columns: 1fr;
  }
}

.d3l-station-features-list {
  min-height: 5.2em;
}
