/* ============================================
 * Download Catalog Page Styles
 * ============================================ */

.download-list-section {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
}

.download-grid-col {
    width: 100%;
}

.download-grid-col .products-grid-heading-gap {
    margin-bottom: 1.75rem;
}

.download-card-grid {
    row-gap: 3rem;
    column-gap: 2.5rem;
}

.download-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.download-card-title {
    flex: 1;
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.download-card-download {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    color: #1a1a1a;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
    background: transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.7s ease, border-color 0.7s ease;
}

.download-card-download::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    background: #b71c1c;
    border-radius: inherit;
    transition: transform 0.7s ease;
}
.download-card-download::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #fff;
    border-radius: inherit;
}

.download-card-download:hover {
    color: #fff;
    border-color: #b71c1c;
}

.download-card-download:hover::before {
    transform: scaleX(1);
}

.download-card-download svg {
    width: 0.72rem;
    height: 0.72rem;
}

.download-card-missing {
    font-size: 0.875rem;
    color: #999;
}

@media (min-width: 1024px) {
    .download-list-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .download-grid-col .products-grid-heading-gap {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .download-list-section {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }

    .download-card-grid {
        row-gap: 2.5rem;
    }

    .download-card-body {
        gap: 0.75rem;
    }

    .download-card-actions {
        justify-content: flex-start;
    }
}
