/* Product Category Download — /product-category/.../download/ */
.dl-page {
    --dl-red: #cc0000;
    --dl-red-hover: #a30000;
    --dl-border: #e5e7eb;
    --dl-text: #374151;
    --dl-muted: #6b7280;
    background: #fff;
    padding-bottom: 4rem;
}

.dl-page .dl-container {
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .dl-page .dl-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Breadcrumb styles moved to css/style.css (.parwatt-breadcrumb) */

.dl-page .dl-layout {
    display: grid;
    gap: 2rem;
    padding-top: 2.5rem;
}

@media (min-width: 900px) {
    .dl-page .dl-layout {
        grid-template-columns: 260px 1fr;
        gap: 3rem;
        align-items: start;
    }
}

.dl-page .dl-sidebar__section + .dl-sidebar__section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--dl-border);
}

.dl-page .dl-sidebar__section-title {
    margin: 0 0 0.85rem;
    font-size: 16px;
    line-height: 1.35;
    color: #111827;
}

@media (min-width: 768px) {
    .dl-page .dl-sidebar__section-title {
        font-size: 20px;
    }
}

.dl-page .dl-sidebar__nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dl-page .dl-sidebar__item + .dl-sidebar__item {
    margin-top: 0.15rem;
}

.dl-page .dl-sidebar__link,
.dl-page .dl-sidebar__child-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0.45rem 0;
    color: var(--dl-text);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dl-page .dl-sidebar__link,
.dl-page .dl-sidebar__child-link,
.dl-page .dl-sidebar__link span,
.dl-page .dl-sidebar__child-link span {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.dl-page .dl-sidebar__link:hover,
.dl-page .dl-sidebar__child-link:hover,
.dl-page .dl-sidebar__link.is-active,
.dl-page .dl-sidebar__child-link.is-active {
    color: var(--dl-red);
}

.dl-page .dl-sidebar__link.is-parent {
    justify-content: flex-start;
    gap: 0.25rem;
    width: auto;
}

.dl-page .dl-sidebar__toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1;
    color: var(--dl-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.dl-page .dl-sidebar__link.is-parent:hover .dl-sidebar__toggle,
.dl-page .dl-sidebar__link.is-parent.is-active .dl-sidebar__toggle {
    color: var(--dl-red);
}

.dl-page .dl-sidebar__item.is-open .dl-sidebar__toggle {
    transform: rotate(45deg);
}

.dl-page .dl-sidebar__children {
    list-style: none;
    margin: 0.25rem 0 0.5rem 0.75rem;
    padding: 0;
}

.dl-page .dl-sidebar__children .dl-sidebar__children {
    margin-left: 0.65rem;
}

.dl-page .dl-sidebar__sub-item + .dl-sidebar__sub-item {
    margin-top: 0.1rem;
}

.dl-page .dl-sidebar__child-link {
    color: var(--dl-muted);
}

.dl-page .dl-sidebar__child-link.is-parent {
    justify-content: flex-start;
    gap: 0.25rem;
    width: auto;
}

.dl-page .dl-main__title {
    margin: 0 0 2rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: #111827;
    line-height: 1.15;
}

.dl-page .dl-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
    .dl-page .dl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .dl-page .dl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.dl-page .dl-card {
    display: block;
}

.dl-page .dl-card.hidden {
    display: none;
}

.dl-page .dl-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.dl-page .dl-card__link:hover .dl-card__title {
    color: var(--dl-red);
}

.dl-page .dl-card__cover {
    aspect-ratio: 3 / 4;
    background: #f3f4f6;
    border: 1px solid var(--dl-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.dl-page .dl-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dl-page .dl-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.25rem;
    font-weight: 600;
    color: #9ca3af;
}

.dl-page .dl-card__title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--dl-text);
    transition: color 0.2s ease;
}

.dl-page .dl-empty {
    text-align: center;
    color: var(--dl-muted);
    padding: 3rem 1rem;
}

.dl-page .dl-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin-top: 2.5rem;
}

.dl-page .dl-pagination__btn,
.dl-page .dl-pagination__page {
    min-width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dl-border);
    background: #fff;
    color: var(--dl-text);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    padding: 0 0.5rem;
}

.dl-page .dl-pagination__page.is-active {
    background: var(--dl-red);
    border-color: var(--dl-red);
    color: #fff;
}

.dl-page .dl-pagination__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dl-page .dl-pagination__jump {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: var(--dl-muted);
}

.dl-page .dl-pagination__jump input {
    width: 3rem;
    height: 2.25rem;
    border: 1px solid var(--dl-border);
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.dl-page .dl-pagination__confirm {
    border: 2px solid var(--dl-red);
    background: #fff;
    color: var(--dl-red);
    border-radius: 999px;
    padding: 0.4rem 1.25rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.dl-page .dl-pagination__confirm:hover {
    background: var(--dl-red);
    color: #fff;
}
