/* ==========================================================================
   Al Saeed Dev - Digital Products  (products.php + product.php)
   --------------------------------------------------------------------------
   - Loaded AFTER bootstrap.min.css, style.css and header-footer.css.
   - Colour comes from Bootstrap's --bs-primary, font from the site's own
     font-head.php, so the pages follow the rest of the website automatically.
   - Everything is prefixed dpm- and scoped under .dpm-scope.
   ========================================================================== */

.dpm-scope {
    --dpm-primary: var(--bs-primary, #0d6efd);
    --dpm-primary-soft: rgba(13, 110, 253, .08);
    --dpm-primary-line: rgba(13, 110, 253, .24);
    --dpm-success: var(--bs-success, #198754);
    --dpm-success-soft: rgba(25, 135, 84, .10);
    --dpm-amber: #a16207;
    --dpm-amber-soft: #fef3c7;
    --dpm-ink: var(--bs-body-color, #212529);
    --dpm-muted: #6b7280;
    --dpm-line: #e6e9ef;
    --dpm-surface: #fff;
    --dpm-sunken: #f2f4f8;
	--dpm-border-soft: #6b7280;
    --dpm-radius: 14px;
    --dpm-radius-sm: 10px;
    --dpm-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --dpm-shadow-lg: 0 16px 34px -10px rgba(16, 24, 40, .20);
    color: var(--dpm-ink);
    padding-bottom: 3rem;
}

@supports (color: color-mix(in srgb, red 10%, white)) {
    .dpm-scope {
        --dpm-primary-soft: color-mix(in srgb, var(--dpm-primary) 9%, #fff);
        --dpm-primary-line: color-mix(in srgb, var(--dpm-primary) 30%, #fff);
    }
}

.dpm-scope *,
.dpm-scope *::before,
.dpm-scope *::after { box-sizing: border-box; }

.dpm-scope a { text-decoration: none; }
.dpm-scope :focus-visible {
    outline: 2px solid var(--dpm-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

.dpm-breadcrumb-nav { padding-top: 0.6rem; }

/* ==========================================================================
   LISTING PAGE
   ========================================================================== */

.dpm-head { padding: 1.5rem 0 1.25rem; }
.dpm-head h1 { margin: 0 0 .5rem; }
.dpm-lead { margin: 0; max-width: 46rem; color: var(--dpm-muted); font-size: 1.05rem; }

/* ---- Browse-by-type pills ---- */
.dpm-types {
    display: flex;
    gap: .5rem;
    margin: 0 0 1rem;
    padding: .15rem 0 .35rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.dpm-types::-webkit-scrollbar { display: none; }

.dpm-type-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: .45rem 1rem;
    border: 1px solid var(--dpm-line);
    border-radius: 999px;
    background: var(--dpm-surface);
    color: var(--dpm-ink);
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color .15s, color .15s, background-color .15s;
}
.dpm-type-pill:hover { border-color: var(--dpm-primary); color: var(--dpm-primary); }
.dpm-type-pill.is-active {
    background: var(--dpm-primary);
    border-color: var(--dpm-primary);
    color: #fff;
}

/* ---- Filters: collapsed panel, opens from a toggle button ---- */
.dpm-filters { margin-bottom: 1.25rem; }
.dpm-filters-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
}
.dpm-count { color: var(--dpm-muted); font-size: .92rem; }
.dpm-count b { color: var(--dpm-ink); }

.dpm-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    height: 46px;
    padding: 0 1.1rem;
    border: 1px solid var(--dpm-line);
    border-radius: 999px;
    background: var(--dpm-surface);
    color: var(--dpm-ink);
    font-size: .95rem;
    font-weight: 700;
    box-shadow: var(--dpm-shadow);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, color .15s;
}
.dpm-filters-toggle:hover { border-color: var(--dpm-primary); color: var(--dpm-primary); }
.dpm-filters.is-open .dpm-filters-toggle { border-color: var(--dpm-primary); color: var(--dpm-primary); box-shadow: 0 0 0 3px var(--dpm-primary-soft); }
.dpm-filters-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--dpm-primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}
.dpm-filters-caret { font-size: .8rem; transition: transform .25s ease; }
.dpm-filters.is-open .dpm-filters-caret { transform: rotate(180deg); }
html:not(.js) .dpm-filters-toggle { display: none; }

/* smooth open / close (no fixed heights) */
.dpm-filters-panel { display: grid; grid-template-rows: 1fr; margin-top: .9rem; }
.js .dpm-filters-panel { grid-template-rows: 0fr; margin-top: 0; transition: grid-template-rows .3s ease, margin-top .3s ease; }
.js .dpm-filters.is-open .dpm-filters-panel { grid-template-rows: 1fr; margin-top: .9rem; }
.dpm-filters-inner { min-height: 0; overflow: hidden; padding: 0 4px 8px; margin: 0 -4px; }
.js .dpm-filters:not(.is-open) .dpm-filters-inner { visibility: hidden; transition: visibility 0s .3s; }

.dpm-filters-card {
    padding: .5rem 1.4rem 1.3rem;
    background: var(--dpm-surface);
    border: 1px solid var(--dpm-line);
    border-radius: var(--dpm-radius);
    box-shadow: var(--dpm-shadow);
}

.dpm-fgroup {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: .6rem 1.25rem;
    align-items: start;
    min-width: 0;
    margin: 0;
    padding: 1.1rem 0;
    border: 0;
    border-bottom: 1px solid var(--dpm-line);
}
.dpm-fgroup legend {
    float: left;
    width: 110px;
    margin: .5rem 0 0;
    padding: 0;
    font-size: .85rem;
    font-weight: 700;
    color: var(--dpm-ink);
}
.dpm-fgroup > :not(legend) { grid-column: 2; }

/* choice chips (real radios, visually hidden) */
.dpm-opts { display: flex; flex-wrap: wrap; gap: .5rem; max-height: 9.5rem; overflow-y: auto; padding: 2px; }
.dpm-opt, .dpm-seg-opt { position: relative; margin: 0; cursor: pointer; }
.dpm-opt input, .dpm-seg-opt input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.dpm-opt span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border: 1px solid var(--dpm-line);
    border-radius: 999px;
    background: var(--dpm-surface);
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s;
}
.dpm-opt.is-child span { font-weight: 500; }
.dpm-opt input:hover + span { border-color: var(--dpm-primary); color: var(--dpm-primary); }
.dpm-opt input:checked + span {
    background: var(--dpm-primary);
    border-color: var(--dpm-primary);
    color: #fff;
    box-shadow: 0 6px 14px -6px var(--dpm-primary);
}
.dpm-opt input:checked + span::before { content: "\F26E"; font-family: "bootstrap-icons"; font-size: 1rem; line-height: 1; }
.dpm-opt input:focus-visible + span,
.dpm-seg-opt input:focus-visible + span { outline: 2px solid var(--dpm-primary); outline-offset: 2px; }

/* price: segmented control */
.dpm-segs { display: inline-flex; width: max-content; max-width: 100%; padding: 3px; background: var(--dpm-sunken); border-radius: 12px; }
.dpm-seg-opt span {
    display: block;
    min-width: 76px;
    padding: .5rem 1.1rem;
    border-radius: 9px;
    color: var(--dpm-muted);
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
    transition: background-color .15s, color .15s, box-shadow .15s;
}
.dpm-seg-opt input:hover + span { color: var(--dpm-ink); }
.dpm-seg-opt input:checked + span { background: var(--dpm-surface); color: var(--dpm-primary); box-shadow: 0 1px 3px rgba(16, 24, 40, .16); }

.dpm-filters-foot { display: flex; align-items: center; gap: 1.1rem; padding-top: 1.2rem; }
.dpm-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 46px;
    padding: 0 1.8rem;
    border: 0;
    border-radius: 999px;
    background: var(--dpm-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s;
}
.dpm-apply:hover { filter: brightness(.92); }
.dpm-reset { color: var(--dpm-muted); font-size: .92rem; font-weight: 600; text-decoration: underline !important; }
.dpm-reset:hover { color: var(--dpm-primary); }

@media (max-width: 767.98px) {
    .dpm-filters-card { padding: .25rem 1rem 1.1rem; }
    .dpm-fgroup { grid-template-columns: 1fr; gap: .55rem; padding: 1rem 0; }
    .dpm-fgroup legend { float: none; width: auto; margin: 0; }
    .dpm-fgroup > :not(legend) { grid-column: 1; }
    .dpm-segs { width: 100%; }
    .dpm-seg-opt { flex: 1 1 0; }
    .dpm-seg-opt span { min-width: 0; }
    .dpm-filters-foot { flex-direction: row-reverse; justify-content: space-between; }
    .dpm-apply { flex: 1 1 auto; }
    .dpm-filters-toggle { flex: 1 1 auto; justify-content: center; }
}

/* ---- Result count + active chips ---- */
.dpm-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin: -.25rem 0 1.25rem;
    color: var(--dpm-muted);
    font-size: .92rem;
}
.dpm-meta-row b { color: var(--dpm-ink); }
.dpm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.dpm-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .4rem .3rem .8rem;
    border: 1px solid var(--dpm-primary-line);
    border-radius: 999px;
    background: var(--dpm-primary-soft);
    color: var(--dpm-primary);
    font-size: .85rem;
    font-weight: 600;
}
.dpm-chip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
}
.dpm-chip a:hover { background: var(--dpm-primary); color: #fff; }
.dpm-chip-clear { font-size: .85rem; font-weight: 600; color: var(--dpm-muted); text-decoration: underline !important; }
.dpm-chip-clear:hover { color: var(--dpm-primary); }

/* ---- Product card (listing + related) ---- */
.dpm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--dpm-surface);
    border: 1px solid var(--dpm-line);
    border-radius: var(--dpm-radius);
    box-shadow: var(--dpm-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dpm-card:hover,
.dpm-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--dpm-shadow-lg);
    border-color: var(--dpm-primary-line);
}

.dpm-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--dpm-sunken);
}
.dpm-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.dpm-card:hover .dpm-card-media img { transform: scale(1.04); }

.dpm-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.6rem;
    color: var(--dpm-primary);
    background: linear-gradient(135deg, var(--dpm-primary-soft), var(--dpm-sunken));
}

.dpm-flag {
    position: absolute;
    top: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.4;
    backdrop-filter: blur(6px);
}

.dpm-flag-featured { left: .75rem; background: var(--dpm-amber-soft); color: var(--dpm-amber); }

.dpm-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
	padding: 1.25rem; 
	min-width: 0;
}
.dpm-card-type {
    margin-bottom: .3rem;
    color: var(--dpm-primary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.dpm-card-title {
    margin: 0 0 .5rem;
    min-height: 2.7em; 
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
	min-height: 0;
}


.dpm-card-title a {
    color: var(--dpm-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dpm-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dpm-card:hover .dpm-card-title a { color: var(--dpm-primary); }


.dpm-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: .95rem;
    border-top: 1px solid var(--dpm-line);
}

.dpm-card-price.is-free { color: var(--dpm-success); }

.dpm-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dpm-border-soft);
  white-space: nowrap;
}

/* circle */
.dpm-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid var(--dpm-border-soft);
  border-radius: 50%;
  transition: background-color .2s, color .2s, transform .2s;
}

/* arrow size */
.dpm-more-icon svg {
  width: 14px;
  height: 14px;
}

/* hover: circle fill, arrow white */
.dpm-card:hover .dpm-more-icon {
  background-color: var(--dpm-primary);
  color: #fff;
  transform: translateX(3px);
}

/* ---- Empty state ---- */
.dpm-empty {
    padding: 3.5rem 1.5rem;
    text-align: center;
    background: var(--dpm-surface);
    border: 1px dashed var(--dpm-primary-line);
    border-radius: var(--dpm-radius);
}

.dpm-empty h3 { margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 700; }
.dpm-empty p { margin: 0 0 1.25rem; color: var(--dpm-muted); }

/* ---- Pagination ---- */
.dpm-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    margin-top: 2.5rem;
}
.dpm-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .75rem;
    border: 1px solid var(--dpm-line);
    border-radius: var(--dpm-radius-sm);
    background: var(--dpm-surface);
    color: var(--dpm-ink);
    font-weight: 600;
    transition: border-color .15s, color .15s;
}
.dpm-page-btn:hover { border-color: var(--dpm-primary); color: var(--dpm-primary); }
.dpm-page-btn.is-active { background: var(--dpm-primary); border-color: var(--dpm-primary); color: #fff; }
.dpm-page-btn.disabled { opacity: .45; pointer-events: none; }
.dpm-page-ellipsis { display: inline-flex; align-items: center; padding: 0 .25rem; color: var(--dpm-muted); }

/* ---- Trust strip + custom-work band ---- */
.dpm-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
}
.dpm-trust-item {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    background: var(--dpm-surface);
    border: 1px solid var(--dpm-line);
    border-radius: var(--dpm-radius);
}
.dpm-trust-ico {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--dpm-primary-soft);
    color: var(--dpm-primary);
    font-size: 1.2rem;
}
.dpm-trust-item h3 { margin: 0 0 .15rem; font-size: 1rem; font-weight: 700; }
.dpm-trust-item p { margin: 0; color: var(--dpm-muted); font-size: .88rem; line-height: 1.45; }

.dpm-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1.6rem 1.8rem;
    background: var(--dpm-primary-soft);
    border: 1px solid var(--dpm-primary-line);
    border-radius: var(--dpm-radius);
}
.dpm-band h2 { margin: 0 0 .2rem; font-size: 1.3rem; font-weight: 700; }
.dpm-band p { margin: 0; color: var(--dpm-muted); }
.dpm-listing-band { margin-top: 1.25rem; }
.dpm-band .btn {
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .dpm-trust { grid-template-columns: 1fr; }
    .dpm-band { padding: 1.3rem; }
}

/* ==========================================================================
   DETAIL PAGE
   ========================================================================== */

.dpm-detail { padding-top: .75rem; }

.dpm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}
.dpm-title { order: 1; }
.dpm-media { order: 2; }
.dpm-side  { order: 3; }
.dpm-main  { order: 4; }

@media (min-width: 992px) {
    .dpm-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        grid-template-areas:
            "title ."
            "media side"
            "main  side";
        column-gap: 2rem;
        row-gap: 1.5rem;
        align-items: start;
    }
    .dpm-title { grid-area: title; min-width: 0;}
    .dpm-media { grid-area: media; }
    .dpm-main  { grid-area: main; }
    .dpm-side  { grid-area: side; align-self: stretch; }
    .dpm-sticky { position: sticky; top: 96px; }
}

/* ---- Title block ---- */
.dpm-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.dpm-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .8rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.dpm-pill-type { background: var(--dpm-primary-soft); color: var(--dpm-primary); }
.dpm-pill-featured { background: var(--dpm-amber-soft); color: var(--dpm-amber); }
.dpm-pill-free { background: var(--dpm-success-soft); color: var(--dpm-success); }

.dpm-title h1 {
    margin: 0 0 .6rem;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
	overflow-wrap: anywhere;
}
.dpm-short { margin: 0; color: var(--dpm-muted); font-size: 1.08rem; line-height: 1.6; }
.dpm-tags { display: flex; flex-wrap: wrap; gap: .4rem;}

.dpm-tags-mt {
	margin-top: .9rem;
}
.dpm-tags-mtb {
	margin-top: .6rem;
	margin-bottom: .6rem;
}
.dpm-tag {
    padding: .2rem .65rem;
    border: 1px solid var(--dpm-line);
    border-radius: 999px;
    background: var(--dpm-surface);
    color: var(--dpm-muted);
    font-size: .8rem;
}

/* ---- Gallery ---- */
.dpm-stage {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--dpm-sunken);
    border: 1px solid var(--dpm-line);
    border-radius: var(--dpm-radius);
    box-shadow: var(--dpm-shadow);
    touch-action: pan-y;
}
.dpm-slide { display: none; width: 100%; height: 100%; }
.dpm-slide.is-active { display: block; }
img.dpm-slide { object-fit: contain; }

.dpm-yt { position: relative; background: #000; cursor: pointer; }
.dpm-yt.is-active { display: block; }
.dpm-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.dpm-yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #e02f2f;
    color: #fff;
    font-size: 1.8rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: transform .15s ease;
}
.dpm-yt:hover .dpm-yt-play { transform: translate(-50%, -50%) scale(1.08); }
.dpm-yt.is-loaded { cursor: default; }
.dpm-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.dpm-count {
    position: absolute;
    top: .8rem;
    left: .8rem;
    z-index: 3;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, .72);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
}
.dpm-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--dpm-ink);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color .15s, color .15s;
}
.dpm-nav:hover { background: var(--dpm-primary); color: #fff; }
.dpm-nav.prev { left: .75rem; }
.dpm-nav.next { right: .75rem; }

.dpm-media,
.dpm-gallery { min-width: 0; max-width: 100%; }

.dpm-thumbs {
    position: relative;
    display: flex;
    gap: .6rem;
    margin-top: .75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* Firefox */
    -ms-overflow-style: none;
}
.dpm-thumbs::-webkit-scrollbar { display: none; }   /* Chrome, Safari */

.dpm-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 96px;
    height: 60px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--dpm-radius-sm);
    background: var(--dpm-sunken);
    cursor: pointer;
    opacity: .75;
    transition: opacity .15s, border-color .15s;
	  scroll-snap-align: center;
}
.dpm-thumb:hover { opacity: 1; }
.dpm-thumb.is-active { border-color: var(--dpm-primary); opacity: 1; }
.dpm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dpm-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 1.3rem;
}

.dpm-nomedia {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    border-radius: var(--dpm-radius);
    background: linear-gradient(135deg, var(--dpm-primary-soft), var(--dpm-sunken));
    color: var(--dpm-primary);
    font-size: 3.5rem;
}

/* ---- Buy card (sidebar) ---- */
.dpm-buy {
    padding: 1.5rem;
    background: var(--dpm-surface);
    border: 1px solid var(--dpm-line);
    border-radius: var(--dpm-radius);
    box-shadow: var(--dpm-shadow-lg);
}
.dpm-price-label { margin: 0 0 .15rem; color: var(--dpm-muted); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dpm-price { margin: 0 0 1.1rem; font-size: 2.3rem; font-weight: 800; line-height: 1.1; }
.dpm-price.is-free { color: var(--dpm-success); }

.dpm-scope .dpm-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    padding: .95rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    text-align: center;
}


@media (min-width: 576px) and (max-width: 991.98px) {
    .dpm-buy-main {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .dpm-scope .dpm-buy-btn {
        width: 100%;
        max-width: 500px;
    }
}

.dpm-buy-btn.is-disabled { opacity: .55; pointer-events: none; }
.dpm-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin: .8rem 0 0;
    color: var(--dpm-muted);
    font-size: .82rem;
}

.dpm-facts { margin: 1.25rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--dpm-line); }
.dpm-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .92rem; }
.dpm-facts dt { margin: 0; color: var(--dpm-muted); font-weight: 500; }
.dpm-facts dd { margin: 0; font-weight: 600; text-align: right; }

.dpm-assure { margin: 1rem 0 0; padding: 1rem 0 0; list-style: none; border-top: 1px solid var(--dpm-line); }
.dpm-assure li { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .9rem; }
.dpm-assure .bi { color: var(--dpm-success); font-size: 1.05rem; }
.dpm-custom-link { display: block; margin-top: 1rem; text-align: center; font-size: .88rem; font-weight: 600; }

/* ---- Content blocks ---- */
.dpm-main { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.dpm-block {
    padding: 1.6rem;
    background: var(--dpm-surface);
    border: 1px solid var(--dpm-line);
    border-radius: var(--dpm-radius);
    box-shadow: var(--dpm-shadow);
}
.dpm-h {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 1.1rem;
    font-size: 1.25rem;
    font-weight: 700;
}
.dpm-h-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--dpm-primary-soft);
    color: var(--dpm-primary);
    font-size: 1rem;
}

.dpm-prose { line-height: 1.75; overflow-wrap: anywhere; }
.dpm-prose > :first-child { margin-top: 0; }
.dpm-prose > :last-child { margin-bottom: 0; }
.dpm-prose h2, .dpm-prose h3, .dpm-prose h4 { margin: 1.6rem 0 .6rem; font-weight: 700; line-height: 1.3; }
.dpm-prose h2 { font-size: 1.3rem; }
.dpm-prose h3 { font-size: 1.15rem; }
.dpm-prose h4 { font-size: 1.02rem; }
.dpm-prose p { margin: 0 0 1rem; }
.dpm-prose ul, .dpm-prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.dpm-prose li { margin-bottom: .35rem; }
.dpm-prose img { max-width: 100%; height: auto; border-radius: var(--dpm-radius-sm); }
.dpm-prose a { color: var(--dpm-primary); text-decoration: underline; }
.dpm-prose blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 4px solid var(--dpm-primary-line); background: var(--dpm-sunken); border-radius: 0 var(--dpm-radius-sm) var(--dpm-radius-sm) 0; }
.dpm-prose code { padding: .12rem .4rem; border-radius: 6px; background: var(--dpm-sunken); font-size: .88em; }
.dpm-prose pre { margin: 0 0 1rem; padding: 1rem; overflow-x: auto; border-radius: var(--dpm-radius-sm); background: #0f172a; color: #e2e8f0; }
.dpm-prose pre code { padding: 0; background: none; color: inherit; }
.dpm-prose table { display: block; max-width: 100%; margin-bottom: 1rem; overflow-x: auto; border-collapse: collapse; }
.dpm-prose th, .dpm-prose td { padding: .5rem .8rem; border: 1px solid var(--dpm-line); }


.dpm-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.dpm-features li { display: flex; align-items: flex-start; gap: .65rem; line-height: 1.5; }
.dpm-features .bi {
    flex: 0 0 auto;
    display: flex;
    align-items: center;   /* icon ko pehli line ke beech mein rakhta hai */
    height: 1.5rem;        /* text ki pehli line ki height (1rem x 1.5) */
    color: var(--dpm-success);
    font-size: 1.05rem;
}
.dpm-features .bi::before { vertical-align: 0; }  /* Bootstrap Icons ka -.125em offset hata do */

.dpm-requirements .bi { color: var(--dpm-primary); }

.dpm-files { display: grid; gap: .7rem; }
.dpm-file {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: .85rem 1rem;
    background: var(--dpm-sunken);
    border-radius: var(--dpm-radius-sm);
}
.dpm-file-ico {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--dpm-surface);
    color: var(--dpm-primary);
    font-size: 1.1rem;
}
.dpm-file-name { font-weight: 600; overflow-wrap: anywhere; }
.dpm-file-desc { margin-top: .1rem; color: var(--dpm-muted); font-size: .88rem; line-height: 1.45; }

.dpm-specs { display: grid; margin: 0; }
.dpm-specs div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--dpm-line); }
.dpm-specs div:last-child { border-bottom: 0; }
.dpm-specs dt { margin: 0; color: var(--dpm-muted); font-weight: 500; }
.dpm-specs dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.dpm-faq { border-bottom: 1px solid var(--dpm-line); }
.dpm-faq:last-child { border-bottom: 0; }
.dpm-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    list-style: none;
    font-weight: 600;
    cursor: pointer;
}
.dpm-faq summary::-webkit-details-marker { display: none; }
.dpm-faq summary::after {
    content: "";
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    background-color: var(--dpm-muted);
    -webkit-mask: url("../icon/chevron-down.svg") no-repeat center / contain;
    mask: url("../icon/chevron-down.svg") no-repeat center / contain;
    transition: transform .2s;
}

.dpm-faq details[open] summary::after {
    transform: rotate(180deg);
}
.dpm-faq[open] summary { color: var(--dpm-primary); }
.dpm-faq[open] summary::after { transform: rotate(180deg); color: var(--dpm-primary); }
.dpm-faq-answer { padding: 0 0 1.1rem; color: var(--dpm-muted); line-height: 1.7; }
.dpm-faq-answer p:last-child { margin-bottom: 0; }

.dpm-related { margin-top: 3rem; }
.dpm-related-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-bottom: 1.25rem; }
.dpm-related-head h2 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.dpm-related-head a { font-weight: 600; color: var(--dpm-primary); }

/* ---- Mobile sticky buy bar ---- */
.dpm-mobilebar { display: none; }

@media (max-width: 991.98px) {
    .dpm-scope.has-mobilebar { padding-bottom: 6rem; }
    .dpm-mobilebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: flex;
        align-items: center;
        gap: 1rem;
         padding: .75rem max(1rem, calc((100% - 520px) / 2)) calc(.75rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .96);
        border-top: 1px solid var(--dpm-line);
        box-shadow: 0 -8px 24px rgba(16, 24, 40, .10);
        backdrop-filter: blur(8px);
        transition: transform .25s ease;
    }
    .dpm-mobilebar.is-hidden { transform: translateY(110%); }
    
    .dpm-mobilebar-price.is-free { color: var(--dpm-success); }
   
   .dpm-mobilebar-price {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row-reverse;   /* current price pehle */
    align-items: baseline;
    white-space: nowrap;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}
.dpm-mobilebar-price.is-free { color: var(--dpm-success); }

/* bar mein sirf current price, old price hide */
.dpm-mobilebar-price .dpm-price-old { display: none; }

.dpm-mobilebar .btn {
    flex: 1 1 auto;     /* price ke baad bacha hua space, 520px ke andar hi */
    min-width: 0;
    padding: .75rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    white-space: nowrap;
}

}

@media (max-width: 767.98px) {
    .dpm-features { grid-template-columns: 1fr; }
    .dpm-block { padding: 1.25rem; }
    .dpm-specs div { grid-template-columns: 1fr; gap: .15rem; }
    .dpm-thumb { 
	width: 80px; height: 50px;
	  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
                mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
	}
    .dpm-buy { padding: 1.25rem; box-shadow: var(--dpm-shadow); }
    .dpm-nav { width: 36px; height: 36px; }
	
	
	.dpm-mobilebar { gap: .75rem; }
.dpm-mobilebar-price { font-size: 1.2rem; }
.dpm-mobilebar .btn .bi { display: none; }
}



@media (prefers-reduced-motion: reduce) {
    .dpm-scope *,
    .dpm-scope *::before,
    .dpm-scope *::after { transition: none !important; animation: none !important; }
    .dpm-card:hover, .dpm-card:focus-within { transform: none; }
    .dpm-card:hover .dpm-card-media img { transform: none; }
}

/* ==========================================================================
   v2 listing design (sub-page hero, count pills, inline filter bar, new card)
   ========================================================================== */
.dpm-hero { background: var(--dpm-surface); border-bottom: 1px solid var(--dpm-line); padding: .25rem 0 1.75rem; margin-bottom: 1.5rem; }
.dpm-hero .breadcrumb { font-size: .8rem; }
.dpm-hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; }
.dpm-hero-title { margin: .75rem 0 .4rem; font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; }
.dpm-hero .dpm-lead { font-size: 1rem; }
.dpm-search { position: relative; flex: 1 1 18rem; max-width: 24rem; margin: 0; }
.dpm-search .bi { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--dpm-muted); pointer-events: none; }
.dpm-search input { width: 100%; height: 44px; padding: 0 1rem 0 2.5rem; border: 1px solid var(--dpm-line); border-radius: 12px; background: var(--dpm-sunken); font-size: .95rem; }
.dpm-search input:focus { outline: 0; background: #fff; border-color: var(--dpm-primary); box-shadow: 0 0 0 4px var(--dpm-primary-soft); }

.dpm-type-pill { border-radius: 12px; }
.dpm-pill-count { margin-left: .5rem; padding: 0 .45rem; border-radius: 999px; background: var(--dpm-sunken); color: var(--dpm-muted); font-size: .75rem; }
.dpm-type-pill.is-active .dpm-pill-count { background: rgba(255, 255, 255, .25); color: #fff; }

.dpm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin: .5rem 0 1.5rem; padding: .8rem 0; border-top: 1px solid var(--dpm-line); border-bottom: 1px solid var(--dpm-line); }
.dpm-bar-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; }

.dpm-select {
  height: 40px;
  padding: 0 2.25rem 0 .85rem;   /* right side zyada, arrow ke liye jagah */
  border: 1px solid var(--dpm-line);
  border-radius: 12px;
  background-color: #fff;
  color: var(--dpm-ink);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2 4.25l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right .85rem center;  
  background-size: 12px 12px;
}

.dpm-select:focus { outline: 0; border-color: var(--dpm-primary); }


.dpm-card-cat-type {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 500;      
  letter-spacing: 0.04em;
  color: var(--dpm-border-soft);
  line-height: 1.2;
}

a.dpm-card-cat-type {
    position: relative;
    z-index: 2;
    display: inline-block;
    text-decoration: none;
    pointer-events: auto;
}

a.dpm-card-cat-type {
    position: relative;
    z-index: 2;
    pointer-events: auto;
    text-decoration: none;
}

a.dpm-card-cat-type:hover,
a.dpm-card-cat-type:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dpm-pill-price { position: absolute; top: .75rem; right: .75rem; padding: .2rem .7rem; border-radius: 999px; background: rgba(17, 24, 39, .85); color: #fff; font-size: .82rem; font-weight: 800; }
.dpm-pill-price.is-free { background: var(--dpm-success); }
.dpm-card-meta { 
display: flex; 
align-items: center;
 justify-content: space-between;
 gap: .5rem;
 margin-bottom: .5rem;
  position: relative;
  z-index: 2;
 }
.dpm-card-meta .dpm-card-type { margin: 0; }
.dpm-card-feat { color: var(--dpm-amber); font-size: .72rem; font-weight: 700; white-space: nowrap; }



.dpm-card:hover .dpm-card-more { filter: brightness(.92); }
@media (max-width: 575.98px) { .dpm-search { max-width: none; } .dpm-bar-ctl { width: 100%; } }


/* ==========================================================================
   Card - same structure/design as products-template.html
   ========================================================================== */
.dpm-card { border-radius: 16px; border-color: rgba(226, 232, 240, .8); }
.dpm-card-media img { transition: transform .5s ease; }
.dpm-card:hover .dpm-card-media img { transform: scale(1.05); }

.dpm-pill-price { padding: .125rem .75rem; font-size: .875rem; }
.dpm-pill-price.is-free { background: #00BF62; font-size: .75rem; letter-spacing: .02em; box-shadow: 0 4px 10px rgba(0, 191, 98, .3); }
.dpm-card-type { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.dpm-card-rate { flex: 0 0 auto; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.dpm-card-rate .bi { color: #FFC448; }
.dpm-card-title { margin: 0 0 .5rem; font-size: 1rem; }
.dpm-card-foot { padding-top: .75rem; border-top-color: #f1f5f9; }
.dpm-card-label { color: #94a3b8; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dpm-card-note { color: var(--dpm-muted); font-size: 1.2rem; }
.dpm-card-note b { color: #00BF62; }
.dpm-card-more.is-free { background: #00BF62; }

/* ---- Buy card: facts first, price + Gumroad button after "Last updated" ---- */
.dpm-buy > .dpm-facts:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.dpm-buy-main { margin-top: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--dpm-line); }
.dpm-buy-top { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.dpm-buy-main .dpm-price-label { margin: 0 0 .2rem; }
.dpm-buy-main .dpm-price { margin: 0; font-size: 2.1rem; }
.dpm-buy-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .35rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: var(--dpm-surface);
    color: var(--dpm-success);
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 0 0 1px var(--dpm-success-soft);
}
.dpm-buy-main .dpm-secure { margin-top: .8rem; }



/* ---- Gumroad-style buy button (pink, black text + border, hard shadow on hover) ---- */
.dpm-scope .dpm-buy-btn.btn-primary,
.dpm-mobilebar .btn.btn-primary {
    --bs-btn-bg: #ff90e8;
    --bs-btn-border-color: #000;
    --bs-btn-color: #000;
    background-color: #ff90e8;
    border: 1px solid #000;
    color: #000;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

@media (hover: hover) {
    .dpm-scope .dpm-buy-btn.btn-primary:hover,
    .dpm-scope .dpm-buy-btn.btn-primary:focus-visible,
    .dpm-mobilebar .btn.btn-primary:hover {
        background-color: #ff90e8;
        border-color: #000;
        color: #000;
        transform: translate(-3px, -3px);
        box-shadow: 4px 4px 0 #000;
    }
}

.dpm-scope .dpm-buy-btn.btn-primary:active,
.dpm-mobilebar .btn.btn-primary:active {
    background-color: #ff7ee2;
    border-color: #000;
    color: #000;
    transform: none;
    box-shadow: none;
}


.dpm-card-pricebox {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.dpm-card-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;   
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dpm-ink);
}

/* Current price */
.dpm-price-sale,
.dpm-price-regular {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dpm-ink);
  text-decoration: none;
}

/* Old price: chhota, grey, strikethrough */
.dpm-price-old {
  font-size: 0.85rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
}

.dpm-badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}



/* ---- Buy card: price row on top ---- */
.dpm-buy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 1rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid var(--dpm-line);
}
.dpm-buy-top + .dpm-facts { margin-top: 0; padding-top: 0; border-top: 0; }

.dpm-buy-top .dpm-buy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  background: var(--dpm-success-soft);
  box-shadow: none;
}

.dpm-buy-top .dpm-price {
  display: flex;
  flex-direction: row-reverse;   /* current price hamesha right par */
  justify-content: flex-start;
  align-items: baseline;         /* old aur new price ek baseline par */
  gap: 8px;
  margin: 0 0 0 auto;
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
}

.dpm-buy-top .dpm-price-old,
.dpm-buy-top .dpm-price-sale,
.dpm-buy-top .dpm-price-regular {
  display: inline-block;
  line-height: 1;
  order: 0;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}

.dpm-buy-top .dpm-price-old {
  font-size: .8rem;              /* pehle 1rem tha, ab chhota */
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
}

.dpm-buy-top .dpm-price-sale,
.dpm-buy-top .dpm-price-regular {
  text-decoration: none;
}




.bi-svg { display:inline-flex; align-items:center; justify-content:center; line-height:1; font-style:normal; vertical-align:-0.125em; }
.bi-svg svg { width:1em; height:1em; fill:currentColor; }



.dpm-stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.dpm-stack-badge {
    --c: 37, 99, 235;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: rgb(var(--c));
    background: rgba(var(--c), .12);
    border: 1px solid rgba(var(--c), .3);
}
.dpm-sc-1 { --c: 37, 99, 235; }   /* blue */
.dpm-sc-2 { --c: 22, 163, 74; }   /* green */
.dpm-sc-3 { --c: 147, 51, 234; }  /* purple */
.dpm-sc-4 { --c: 234, 88, 12; }   /* orange */
.dpm-sc-5 { --c: 219, 39, 119; }  /* pink */


/* Custom CTA band */
.dpm-band{position:relative;isolation:isolate;overflow:hidden;padding:1.25rem 1.5rem;border-radius:1rem;color:#fff;
  background:linear-gradient(135deg,#1e212b 0%,#12141b 60%,#0d3b17 100%);
  border:1px solid rgba(255,255,255,.08);box-shadow:0 .5rem 1.5rem rgba(0,0,0,.2);
  transition:transform .3s ease,box-shadow .3s ease}
.dpm-band:hover{transform:translateY(-3px);box-shadow:0 1rem 2rem rgba(26,163,47,.25)}
.dpm-band::before{content:"";position:absolute;z-index:-1;top:-70px;right:-50px;width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(26,163,47,.5),transparent 70%)}
.dpm-band::after{content:"";position:absolute;z-index:-1;left:0;top:0;height:3px;width:100%;
  background:linear-gradient(90deg,#1aa32f,#ffc107,#1aa32f)}
.dpm-listing-band{margin-top:1.25rem}

.dpm-band-grid{
	display:flex;
	width: 100%;
	flex-wrap:wrap;
	align-items:center;
	justify-content:space-between;
	gap:1rem 1.5rem
	}
.dpm-band-text{flex:1 1 280px;min-width:0}
.dpm-band h2{margin:0 0 .2rem;font-size:clamp(1.1rem,1rem + .5vw,1.35rem);font-weight:700;line-height:1.25;color:#fff}
.dpm-band p{margin:0;color:#b8c0cc;font-size:.9rem;line-height:1.5}

.dpm-band-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-left:auto}
.dpm-band-ico{
  position:relative;isolation:isolate;overflow:hidden;
  display:inline-flex;align-items:center;justify-content:center;
  width:2.2rem;height:2.2rem;border-radius:50%;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);
  color:#fff;text-decoration:none;
  transition:border-color .2s,transform .2s;
}
.dpm-band-ico::before{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;
  background:linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  opacity:0;transition:opacity .25s ease;
}
.dpm-band-ico:hover{border-color:transparent;transform:translateY(-2px)}
.dpm-band-ico:hover::before{opacity:1}
.dpm-band-ico,
.dpm-band-ico:hover,
.dpm-band-ico:focus{
  color:#fff;
}

.dpm-band-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.6rem 1.3rem;border-radius:50rem;
  font-weight:700;font-size:.95rem;background:#ffc107;color:#1e212b;border:0;text-decoration:none;white-space:nowrap;
  transition:transform .2s ease,box-shadow .2s ease}
.dpm-band-btn:hover{transform:translateX(3px);box-shadow:0 .4rem 1rem rgba(255,193,7,.35);color:#1e212b}
.dpm-band-btn svg{width:1em;height:1em}

@media (max-width:767.98px){
  .dpm-band{padding:1.3rem}
  .dpm-band-actions{margin-left:auto}
}
@media (prefers-reduced-motion:reduce){
  .dpm-band,.dpm-band-btn{transition:none}
  .dpm-band:hover{transform:none}
}



.meta-link--category {
    color: var(--dpm-primary);
}

/* Type: green */
.meta-link--type {
    color: var(--dpm-success);
}

/* License: amber */
.meta-link--license {
    color: var(--dpm-amber);
}

.meta-link:hover {
    opacity: .8;
    
}



.dpm-card-desc {
flex: 0 0 auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--dpm-muted);
  max-width: 100%;
  font-size: .875rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal; /* allow wrapping */
   margin: 0 0 .75rem;
}

