/* Department landing page */

.dept-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 56px;
}

.dept-empty {
    padding: 48px 16px;
    text-align: center;
    color: #6B6964;
    font-size: 0.9375rem;
}

/* ── Category card grid ── */
.dept-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 12px 32px;
}

.dept-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px 16px;
    background: white;
    border: 1.5px solid #E8E6E1;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.dept-cat-card:hover {
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(20, 154, 73, 0.1);
    transform: translateY(-2px);
}

.dept-cat-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #F4F2EE;
    overflow: hidden;
    flex-shrink: 0;
    color: var(--green-dark);
}

.dept-cat-card-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.dept-cat-card-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1C1C1A;
    line-height: 1.3;
}

/* ── Tablet ── */
@media (min-width: 480px) {
    .dept-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 600px) {
    .dept-cat-grid {
        padding: 0 20px 32px;
        gap: 14px;
    }
}

@media (min-width: 768px) {
    .dept-cat-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
    .dept-cat-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
        padding: 0 0 40px;
    }

    .dept-cat-card-icon {
        width: 72px;
        height: 72px;
    }

    .dept-cat-card-icon img {
        width: 72px;
        height: 72px;
    }

    .dept-cat-card-name {
        font-size: 0.875rem;
    }
}
